On Wed, Oct 14, 2009 at 05:11, B.A. 'Bad Attitude' Baracus <b...@baracus.org>wrote:
> > It does seem like a bad idea to have it hardcoded to development in > initializer.rb. > Well, somewhere it *does* have to default to "development". > > I've never run into your problem, though. quick fix: set RAILS_ENV to > the appropriate value in your system wide bashrc on staging and > production machines. Yeah I got that a lot. Problem is, there are other apps on the same machine running in different environments. I don't want a system-wide setting, I want it per-app so that's why I'm using a preinitializer. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---