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

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

Posted by: incense
Posted on: 2006-09-30 02:36:00

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.
Josh

Re: Rails: App not in prod. mode although set to b

Posted by: andrei
Posted on: 2006-10-04 13:38:00

Instead of that line, use:

RAILS_ENV = 'production'

Tags: localhostdreamhostwikistep by stepprodtriesmysqlrunningstuff