You are on page 1of 1

Deploying a Ruby on Rails application: an example

Suppose you have a Ruby on Rails application in /somewhere. Add a server block to your Nginx con iguration ile! set its root to /somewhere/public! and set "passenger#enabled on"! like this:

server $ listen %&' server#name www.yourhost.com' root /somewhere/public' ( )*** be sure to point to "public"+ passenger#enabled on' ,

And that"s it+ -ou may also want to check the .sers /uide or security and optimi0ation tips and other use ul in ormation:

/usr/local/lib/ruby/gems/1.&.&/gems/passenger*2.&.13/doc/.sers guide Nginx.html http://www.modrails.com/documentation/.sers41&guide41&Nginx.html

5n6oy 7husion 7assenger! a product o 7husion 8www.phusion.nl9 :*9 https://www.phusionpassenger.com

You might also like