# Can't get Eclipse to start Rails in production mode

**URL:** <https://www.ruby-forum.com/t/cant-get-eclipse-to-start-rails-in-production-mode/116318>\
**Category:** Rails\
**Created:** [October 4, 2007, 2:06pm UTC](https://www.ruby-forum.com/t/cant-get-eclipse-to-start-rails-in-production-mode/116318 "2007-10-04T14:06:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [October 4, 2007, 2:06pm UTC](https://www.ruby-forum.com/t/cant-get-eclipse-to-start-rails-in-production-mode/116318/1 "2007-10-04T14:06:59Z")

</div>

I’m using Eclipse to run a rails server for local development. I  
changed my environment.rb to have

ENV[‘RAILS\_ENV’] ||= ‘production’

as this is what i did with my live deployed version to get it to run in  
prod mode. But, when i restart the server in eclipse, it’s still in dev  
mode.

The ‘file’ setting in my eclipse ‘run’ dialog is “script\server”. Do i  
need to run something else to get it into dev mode?

I also just tested with mongrel: if i do

mongrel\_rails start -e production

then it seems to still run in dev mode as well.

Can anyone explain what i’m doing wrong?

thanks  
max

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [October 4, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/cant-get-eclipse-to-start-rails-in-production-mode/116318/2 "2007-10-04T15:39:36Z")

</div>

I think you should ask this question in the aptana forum:  
[http://www.aptana.com/forums/](http://www.aptana.com/forums/)

That is if you are using RadRails.

regards,  
Stijn

On 4 okt, 14:06, Max W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [October 4, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/cant-get-eclipse-to-start-rails-in-production-mode/116318/3 "2007-10-04T15:41:45Z")

</div>

Tarscher wrote:

> I think you should ask this question in the aptana forum:  
> [http://www.aptana.com/forums/](http://www.aptana.com/forums/)
> 
> That is if you are using RadRails.
> 
> regards,  
> Stijn
> 
> On 4 okt, 14:06, Max W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

i am and i will 🙂 thanks
