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
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to