Forum: Ruby on Rails Switching to production mode

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Surendra S. (Guest)
on 2006-05-04 22:10
(Received via mailing list)
  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.,
Read my blog at:
| "War is Peace! Freedom is Slavery! Ignorance is Strength!"
|     -- Orwell, 1984, 1948
Jón B. (Guest)
on 2006-05-05 01:44
(Received via mailing list)
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. <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

This topic is locked and can not be replied to.