Running on a server

suggest change

On a server using Apache and Passenger, set the Rails environment in the virtual host. This example sets RailsEnv production. The DocumentRoot must be the app's public directory. The path below is only a sample.

<VirtualHost *:80>
  ServerName application_name.rails.local
  DocumentRoot "/Users/rails/application_name/public"
  RailsEnv production ## This is the default
</VirtualHost>

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents