Can't get Eclipse to start Rails in production mode

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

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

That is if you are using RadRails.

regards,
Stijn

On 4 okt, 14:06, Max W. [email protected]

Tarscher wrote:

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

That is if you are using RadRails.

regards,
Stijn

On 4 okt, 14:06, Max W. [email protected]

i am and i will :slight_smile: thanks