Forum: Ruby on Rails ENV['RAILS_ENV'] pb

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
19403f509ca90e8ffe072214c6cba896?d=identicon&s=25 oo00oo (Guest)
on 2006-03-03 10:45
(Received via mailing list)
Hello,

I want to put my app in production mode. So I write this line in
environment.rb :
ENV['RAILS_ENV'] = "production"

I restart webrick. If I write <%= ENV.inspect %> I have the correct
"RAILS_ENV"=>"production"

But browse my site and look the log, the   development.log   is still
growing and the    production.log    stay to 0 ko

Why ?
19403f509ca90e8ffe072214c6cba896?d=identicon&s=25 oo00oo (Guest)
on 2006-03-04 08:13
(Received via mailing list)
Someone could help me please ?
25e11a00a89683f7e01e425a1a6e305c?d=identicon&s=25 Wilson Bilkovich (Guest)
on 2006-03-05 07:07
(Received via mailing list)
On 3/4/06, oo00oo <oo00oo@free.fr> wrote:
> > But browse my site and look the log, the   development.log   is still
> > growing and the    production.log    stay to 0 ko
> >
> > Why ?
> >
>

If you're using WEBrick, you can do:
ruby script/server -e production

If you're using FastCGI or SCGI, typically you put the RAILS_ENV
setting the CGI configuration.
This topic is locked and can not be replied to.