Running on a server
suggest changeOn 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>
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents