Can't get out of development mode

Up until a few days ago everything was fine, production was humming
along in production mode without a problem, but then we did a push
(using deprec) and now production won’t go back into production mode,
but insists on being in development mode.
We’ve tried changing the environment.rb to

ENV[‘RAILS_ENV’] ||= ‘production’

but it still won’t work.

Our last push included acts_as_ferret, and the addition of an
administration system using ActiveScaffold, but no changes to the
routes, or any other config file that I’m aware of.

Unfortunately I’m not a Linux sys admin so I don’t know much about
configuring Apache or Mongrels (we’re running Apache 2 and two
Mongrels) but they were running fine in production before this push.

Does anyone have any idea of how to get us back into production mode,
or even a hint as to what the hell is wrong.

TIA
Dale

On Oct 17, 12:34 pm, PeteSalty [email protected] wrote:

Our last push included acts_as_ferret, and the addition of an
administration system using ActiveScaffold, but no changes to the
routes, or any other config file that I’m aware of.

Unfortunately I’m not a Linux sys admin so I don’t know much about
configuring Apache or Mongrels (we’re running Apache 2 and two
Mongrels) but they were running fine in production before this push.

Does anyone have any idea of how to get us back into production mode,
or even a hint as to what the hell is wrong.

Check your mongrel cluster file. The mode might be set as development
in it.


Procrastinx

On 17 Oct 2007, at 08:34, PeteSalty wrote:

Up until a few days ago everything was fine, production was humming
along in production mode without a problem, but then we did a push
(using deprec) and now production won’t go back into production mode,
but insists on being in development mode.
We’ve tried changing the environment.rb to

ENV[‘RAILS_ENV’] ||= ‘production’

If you’re using mongrel cluster then the mongrel_cluster.yml file can
set the environment. Have you checked that?

Fred

Thanks for the suggestions, turns out that for some reason the mongrel
clusters weren’t starting correctly (no idea why) but easily fixed.

On Oct 17, 1:25 am, Frederick C. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs