Sha256: bec53a1dd21cdb97a61d86633fc91240a427dcb0fdc94c511493950f5a07fafa

Contents?: true

Size: 810 Bytes

Versions: 68

Compression:

Stored size: 810 Bytes

Contents

<banner>Deploying a Ruby on Rails application: an example</banner>

Suppose you have a Ruby on Rails application in <b>/somewhere</b>. Add a <b>server</b> block
to your Nginx configuration file, set its <b>root</b> to <b>/somewhere/public</b>, and set
<b>'passenger_enabled on'</b>, like this:
<b>
   server {
      listen 80;
      server_name www.yourhost.com;
      root /somewhere/public;   # <--- be sure to point to 'public'!
      passenger_enabled on;
   }
</b>
And that's it! You may also want to check the Users Guide for security and
optimization tips and other useful information:

  <yellow><%= @users_guide %></yellow>

Enjoy Phusion Passenger, a product of Phusion (<b><%= @phusion_website %></b>) :-)
<b><%= @passenger_website %></b>

Phusion Passenger is a trademark of Hongli Lai & Ninh Bui.

Version data entries

68 entries across 68 versions & 7 rubygems

Version Path
passenger-4.0.20 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.19 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.18 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.17 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.16 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.14 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.13 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.10 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.8 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.7 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.6 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.5 resources/templates/nginx/deployment_example.txt.erb
passenger-3.0.21 lib/phusion_passenger/templates/nginx/deployment_example.txt.erb
passenger-4.0.4 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.3 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.2 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.1 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.0.rc6 resources/templates/nginx/deployment_example.txt.erb
passenger-4.0.0.rc4 resources/templates/nginx/deployment_example.txt.erb
passenger-3.9.2.beta resources/templates/nginx/deployment_example.txt.erb