try RAILS_ENV='production'

ENV["RAILS_ENV"] has been deprecated.


-Matt

--- http://railsontherun.com


On Dec 3, 6:37 am, Markus Klems <[EMAIL PROTECTED]>
wrote:
> I recently deployed my application and it works fine except for one
> minor detail: I cannot change the environment from development to
> production.
> My environment.rb has the first line
>
> #1
> ENV["RAILS_ENV"] = "production"
>
> Opening the console and checking the environment with "ruby
> script/about" shows that I am in development mode, however.
>
> Then I added this line
>
> #2
> RAILS_ENV = ENV["RAILS_ENV"]
>
> But when I run "ruby script/about" with the second line #2 then I get an
> error message because the RAILS_ENV constant has been initialized
> before, already. I am really puzzled why that is (where can it possibly
> have been set?).
>
> Perhaps someone else had a similar problem and could point me in the
> right direction. Thanks a lot.
> --
> Posted viahttp://www.ruby-forum.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to