ENV['RAILS_ENV'] pb


#1

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 ?


#2

Someone could help me please ?


#3

On 3/4/06, oo00oo removed_email_address@domain.invalid 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.