rubyonrailsin

A Ruby and Rails talk

Friday, March 19, 2010


[Rails] Re: convert app to production

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive