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 Singhi <efuzzyone@netscape.net>
wrote:> 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 Singhi
> 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
> `----
>
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
--------------
Jon Gretar Borgthorsson
http://www.jongretar.net/