# Can't get out of development mode

**URL:** <https://www.ruby-forum.com/t/cant-get-out-of-development-mode/117471>\
**Category:** Rails\
**Created:** [October 17, 2007, 9:35am UTC](https://www.ruby-forum.com/t/cant-get-out-of-development-mode/117471 "2007-10-17T09:35:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeteSalty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Post date:** [October 17, 2007, 9:35am UTC](https://www.ruby-forum.com/t/cant-get-out-of-development-mode/117471/1 "2007-10-17T09:35:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PeteSalty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Post date:** [October 17, 2007, 10:26am UTC](https://www.ruby-forum.com/t/cant-get-out-of-development-mode/117471/2 "2007-10-17T10:26:06Z")

</div>

On Oct 17, 12:34 pm, PeteSalty [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![PeteSalty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Post date:** [October 17, 2007, 10:26am UTC](https://www.ruby-forum.com/t/cant-get-out-of-development-mode/117471/3 "2007-10-17T10:26:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PeteSalty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Post date:** [October 17, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/cant-get-out-of-development-mode/117471/4 "2007-10-17T22:21:42Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
