Hi,
How to change rails 2.3.5 app to production? I couldn't find ENV["RAILS_ENV"] under config/environment.rb
Thanks
Hi,
How to change rails 2.3.5 app to production? I couldn't find ENV["RAILS_ENV"] under config/environment.rb
Thanks
John Wu wrote:
How to change rails 2.3.5 app to production? I couldn't find ENV["RAILS_ENV"] under config/environment.rb
That's been gone from config/environment.rb for quite a while now. It was never really the "proper" way to setup the environment anyway AFAIK.
What you'll want to do is setup your production server to default to production mode.
For information on how to do this using Phusion Passenger see: http://www.modrails.com/documentation/Users%20guide%20Apache.html#rails_env
If you just want to run in production mode on your local box you can start script/server in production mode with:
./script/server -e production
See... ./script/server --help