Rails: App not in prod. mode although set to be!


Hi all

Step by step I’m getting nearer to get a first Rails app running on DreamHost. I followed the wiki guide how to set up a plain new Rails app, and I also did the step to set the environment to production by uncommenting the line in environment.rb:

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

But strangely this doesn’t work! MySQL still tries to load the stuff from environment which ends in a fatal error because the environment settings point to localhost etc.!

How can this be? Thanks for any reply.


Instead of that line, use:

RAILS_ENV = ‘production’