ENV is just a hash of your shell variables, so you can just set and export RAILS_ENV to development in your .bash_profile or equiviant and Rails should behave properly.
Hope that helps, Brad On Wed, Nov 25, 2009 at 4:09 PM, Scott Olmsted <[email protected]> wrote: > > The app I'm adding to has this line uncommented in environment.rb: > > ENV['RAILS_ENV'] ||= 'production' > > > and the instructions at the hosting site (railsplayground.com) instruct > one to do this. > > This means I either have to edit this file to work in development on my > machine, and remember to change it back before deploying, or work in > production mode, which is undesirable for a number of reasons. > > I've not seen this on the few other servers I've dealt with. What are they > doing differently that requires this? > > Thanks, > > Scott > > -- > SD Ruby mailing list > [email protected] > http://groups.google.com/group/sdruby -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
