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 ?
Someone could help me please ?> 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 ? >
On 3/4/06, oo00oo <oo00oo@free.fr> wrote:> Someone could help me please ? > > 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 ? > > >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.