User Tools

Site Tools


passenger

Passenger

Return to Django or Django on DreamHost

Your web directory must end in /public to enable Passenger. Change this automatically?\n\nWARNING: If you already have files on this domain, this will make them disappear!

Scroll down to the 'Web Options' section and check the 'Passenger (Ruby/NodeJS/Python apps only):' check box. A WARNING dialog box then appears:

Click the OK button. The panel adds the /public subdirectory for you.

If you already have a /public directory in the current 'Web directory, clicking OK will only switch the 'Web directory' to this new /public folder. Nothing in it is removed.

If you do not already have a /public directory, the panel creates it for you with a coming soon page. The files in your current 'Web directory' remain untouched.

Click the Change settings button to save your changes.

Whenever the code or configuration files for your application are modified, you must create or update the modification date of the file “tmp/restart.txt” in the application's root directory tree in order to trigger Passenger to reinitialize the application. Passenger caches many resources so changes are not recognized unless the modification date of “tmp/restart.txt” is changed. The most common method to make this change is to run the following command via SSH. [server]$ “touch tmp/restart.txt” . (Ruby on Rails automatically creates a directory named “tmp”. If you are creating non-RoR application, you may need to create the “tmp” directory manually. The “public” subdirectory Passenger maps the directory named “public” to be the document root for your domain/subdomain. If a static HTML file named “public/index.html” exists, it's then used as the response for requests for the root document (i.e., “/”). If you want your application to handle requests for the root document, then you must first remove “public/index.html” (if it exists). By default, Ruby on Rails creates a static “public/index.html” file. Likewise, a file inside the “public” subdirectory that is named with one of the suffixes recognized by Apache (e.g., “public/foo.cgi” or “public/foo.pl”) will be treated as an executable CGI script in the usual Apache fashion. (See CGI for more information.)

https://help.dreamhost.com/hc/en-us/articles/215769578-Passenger_overview

“Passenger is an open source web server and application server that greatly simplifies the deployment of Ruby applications, Python, and Node.js. Passenger is the preferred way to deploy and host Ruby on Rails applications across all DreamHost servers and is free on every DreamHost hosting plan.”

“A fast and robust web server and application server for Ruby, Python and Node.js

Supercharge your Ruby, Node.js and Python apps

Phusion Passenger™ is a web server and application server, designed to be fast, robust and lightweight. It takes a lot of complexity out of deploying web apps, adds powerful enterprise-grade features that are useful in production, and makes web app administration much easier and less complex. Phusion Passenger supports Ruby, Python, Node.js and Meteor, and is being used by high-profile companies such as Apple, Pixar, New York Times, AirBnB, Juniper etc as well as over 650.000 websites.“

Fair Use Source: https://github.com/phusion/passenger - https://github.com/search?q=passenger

Installation

macOS with Homebrew

brew install Passenger

Updating Homebrew

=⇒ Auto-updated Homebrew!

Updated 2 taps (homebrew/core and homebrew/cask).

=⇒ Downloading https://homebrew.[[bintray.com]]/bottles/passenger-6.0.6_1.[[catalina]].

=⇒ Downloading from https://d29vzk4ow07wi7.[[cloudfront.net]]/2b8b8c8f7ef364c40d725

  1. 100.0%

=⇒ Pouring passenger-6.0.6_1.catalina.bottle.tar.gz

=⇒ Caveats

To activate Phusion Passenger for Nginx, run:

brew install nginx

And add the following to /usr/local/etc/nginx/nginx.conf at the top scope (outside http{}):

load_module /usr/local/opt/passenger/libexec/modules/ngx_http_passenger_module.so;

And add the following to /usr/local/etc/nginx/nginx.conf in the http scope:

passenger_root /usr/local/opt/passenger/libexec/src/ruby_supportlib/phusion_passenger/locations.ini;

 passenger_ruby /usr/bin/ruby;

To activate Phusion Passenger for Apache, create /etc/apache2/other/passenger.conf:

LoadModule passenger_module /usr/local/opt/passenger/libexec/buildout/apache2/mod_passenger.so

 PassengerRoot /usr/local/opt/passenger/libexec/src/ruby_supportlib/phusion_passenger/[[locations.ini]]
 PassengerDefaultRuby /[[usr/bin]]/ruby

=⇒ Summary

🍺 /usr/local/Cellar/passenger/6.0.6_1: 4,567 files, 255.4MB

passenger.txt · Last modified: 2020/11/20 01:12 by 127.0.0.1