# Convert app to production

**URL:** <https://www.ruby-forum.com/t/convert-app-to-production/185430>\
**Category:** Rails\
**Created:** [March 19, 2010, 9:11pm UTC](https://www.ruby-forum.com/t/convert-app-to-production/185430 "2010-03-19T21:11:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![princenamor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c0e974/32.png) [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Post date:** [March 19, 2010, 9:11pm UTC](https://www.ruby-forum.com/t/convert-app-to-production/185430/1 "2010-03-19T21:11:41Z")

</div>

Hi,

How to change rails 2.3.5 app to production? I couldn’t find  
ENV[“RAILS\_ENV”] under config/environment.rb

Thanks

---

<div class="post-metadata">

**Author:** ![princenamor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c0e974/32.png) [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Post date:** [March 19, 2010, 10:15pm UTC](https://www.ruby-forum.com/t/convert-app-to-production/185430/2 "2010-03-19T22:15:31Z")

</div>

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](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
