# Hoe to set production mode in rails 2.3.3

**URL:** <https://www.ruby-forum.com/t/hoe-to-set-production-mode-in-rails-2-3-3/175352>\
**Category:** Rails\
**Created:** [September 11, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/hoe-to-set-production-mode-in-rails-2-3-3/175352 "2009-09-11T18:43:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [September 11, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/hoe-to-set-production-mode-in-rails-2-3-3/175352/1 "2009-09-11T18:43:42Z")

</div>

I have a very basic question, that I cannot find the answer to  
How to configure your application fro production mode in rails 2.3.3  
The result of my googling is that I should uncomment a line ENV  
[‘RAILS\_ENV’] ||= ‘production’  
but that line is not foun din 2.3.3

Any help would be appreciated

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [September 11, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/hoe-to-set-production-mode-in-rails-2-3-3/175352/2 "2009-09-11T18:55:59Z")

</div>

are you wondering how to start your application in production mode?

ruby script/server -eproduction

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [September 11, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/hoe-to-set-production-mode-in-rails-2-3-3/175352/3 "2009-09-11T20:32:35Z")

</div>

In earlier version you configured the environment.rb file to run the  
application in production mode.In 2.3.3 that seems not be the case.  
How do I get the application to use the production db  
I am using a web hotel for productio mode an cannot start the  
application as you propos

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [September 11, 2009, 8:54pm UTC](https://www.ruby-forum.com/t/hoe-to-set-production-mode-in-rails-2-3-3/175352/4 "2009-09-11T20:54:14Z")

</div>

On Sep 11, 2:30 pm, Hans M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > ruby script/server -eproduction
> 
> > On Sep 11, 11:33 am, Hans [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > I have a very basic question, that I cannot find the answer to  
> > > How to configure your application fro production mode in rails 2.3.3  
> > > The result of my googling is that I should uncomment a line ENV  
> > > [‘RAILS\_ENV’] ||= ‘production’  
> > > but that line is not foun din 2.3.3
> 
> > > Any help would be appreciated

What app server (Mongrel, Passenger, etc) are you running? You can  
find specific instructions in the corresponding documentation. But for  
the general case, have you actually tried adding ENV[‘RAILS\_ENV’] ||=  
‘production’ to the beginning of your environment.rb? Rails still  
checks the RAILS\_ENV environment variable, so…
