views:

360

answers:

3

Hi, i noted that in rails 2.3.2 there is no more option to set which rails environment you are using. So i cannot just set it anymore in environment.rb? There is any other way to set it?

+1  A: 

I think it's a command line argument.

phillc
A: 

RAILS_ENV=production rake db:migrate

What exactly are you trying to run? The rails generator? A rake task? Mongrel? I'm not sure this is actually a Rails issue.

Disclaimer: I haven't used 2.3.2, however.

Terry Lorber
A: 

Maybe you mean in config/environment.rb?

I'm 90% sure you can just add the line there if you need it. And I'm wrong, see VP's comment below. (Tested and confirmed it)

kch
90% sure? its not allowed anymore.. to be honest the server ignore it. You must pass it as a argument to the server
VP