Passenger is an Schienenanwendung server for Ruby (Rack) and Python (WSGI) apps. It allows you to get your web apps online with the least amount of hassle, by taking care of pretty much all of the heavy lifting for you when it comes to managing your apps’ processes and resources.
What makes it so fast and reliable is its C++ core, its zero-copy architecture, its watchdog system and its hybrid evented, multi-threaded and multi-process design.
Laden Sie Ihre Anwendung entweder über FTP/SFTP oder SSH auf den Server hoch. Wenn Sie Ihre Anwendung unter Versionskontrolle haben, checken Sie Ihre Anwendung aus oder klonen Sie sie in einen Ordner in Ihrem Home-Verzeichnis.
–Next, we need address apache/passenger about your application, this is done by setting a symbolic link from your public_html directory to your applications public directory. Here in the following example my application name is “myapp”.
For example, if your application is in myapp then you would issue the following commands in an SSH session: (Make sure there is nothing you need in your /public_html directory as the following will remove everything in that directory)
rm -rf ~/public_html ln -s ~/myapp/public ~/public_html
–Now we need to enable passenger, this is done by creating a file called .htaccess in your application public directory. Add the following entries in the file ./public/.htaccess under the location of your application root.
SCHIENEN-2.xx
RailsBaseURI / PassengerAppRoot /home/myusername/myapp
SCHIENEN-3.xx
RackBaseURI / PassengerAppRoot /home/myusername/myapp –Next, Setup your database and a database user in cPanel, and update your config/database.yml with this new database name, user, and password.
–Migrate or import your database (The command to do this is “rake db:migrate” from your application root path)
–Make sure any third party gems you need are installed, you can view the gems installed by running gem list—local , if there is a gem missing, email support to request the gem to be installed.
Sie können jetzt auf Ihre Rails-Anwendung in Ihrer Domain zugreifen. Bei Bereitstellungsfehlern zeigt Passenger eine Fehlermeldung an, die Ihnen dabei helfen soll, den Fehler zu beheben.
Nehmen Sie Kontakt mit uns auf.