0

I created rails application, and everything appears to be working fine, but I can't seem to figure out how to run the application in production mode. I specified in the example.com.conf (Apache configuration file) for the site, RailsEnv production I then restarted Apache, and restarted the rails app by running the following command in the rails root directory, touch tmp/restart.txt

I'm running Apache 2.x, mod_rails 4.0.26, and the rails app is 3.2.15

1

By default, Passenger sets the value to production:

http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerAppEnv

check your environment.rb and your .bashrc, you might be setting the RAILS_ENV somewhere else.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.