Hi, How to change rails 2.3.5 app to production? I couldn''t find ENV["RAILS_ENV"] under config/environment.rb Thanks -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
John Wu wrote:> How to change rails 2.3.5 app to production? I couldn''t find > ENV["RAILS_ENV"] under config/environment.rbThat''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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.