# Switching to production mode

**URL:** <https://www.ruby-forum.com/t/switching-to-production-mode/59624>\
**Category:** Rails\
**Created:** [May 4, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/switching-to-production-mode/59624 "2006-05-04T20:10:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [May 4, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/switching-to-production-mode/59624/1 "2006-05-04T20:10:36Z")

</div>

Hello,  
I want to start my rails application in production mode. But for some  
reason  
in spite of uncommenting this line in ‘config/environment.rb’

ENV[‘RAILS\_ENV’] ||= ‘production’

when I run ‘ruby script\console’ it says loading development mode.  
Also, the webrick sends log messages to development.log file instead of  
production.log, from which I can guess that it is in development mode.

Any hint or clue on what might I be doing wrong.

## Thanks for your time.

Surendra S.  
[http://ssinghi.kreeti.com](http://ssinghi.kreeti.com), [http://www.kreeti.com](http://www.kreeti.com)  
Read my blog at: [http://cuttingtheredtape.blogspot.com/](http://cuttingtheredtape.blogspot.com/)  
,----  
| “War is Peace! Freedom is Slavery! Ignorance is Strength!”  
| – Orwell, 1984, 1948  
`----

---

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [May 4, 2006, 11:44pm UTC](https://www.ruby-forum.com/t/switching-to-production-mode/59624/2 "2006-05-04T23:44:04Z")

</div>

If your are using webrick you should be able to type “script/server -e  
production”  
To run console in production mode you type “script/console production”

On 5/4/06, Surendra S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Any hint or clue on what might I be doing wrong.
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–
