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