Switching to production mode

I want to start my rails application in production mode. But for some
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://www.kreeti.com
Read my blog at: http://cuttingtheredtape.blogspot.com/
| “War is Peace! Freedom is Slavery! Ignorance is Strength!”
| – Orwell, 1984, 1948

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

On 5/4/06, Surendra S. [email protected] wrote:

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

Rails mailing list
[email protected]