27.02.2013 Views

Rails%203%20In%20Action

Rails%203%20In%20Action

Rails%203%20In%20Action

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Serving requests<br />

After you start Nginx, you are ready to deploy any number of Ruby on Rails<br />

applications on Nginx.<br />

When you upgrade Passenger you’ll need to edit the passenger_root line to point to<br />

the new version, and if you ever upgrade Ruby then you’ll need to change the<br />

passenger_ruby line. Press Enter now to see the next bit of output, where you’re told<br />

how to deploy a Rails application:<br />

server {<br />

listen 80;<br />

server_name www.yourhost.com;<br />

root /somewhere/public; #

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!