Jeff Casimir wrote:
I looked through the Rakefile and finally had an idea. Rake wasn't
looking at environment.rb, it was going for boot.rb. So I opened up
my config/boot.rb, casually ignored the warnings at the top of the
file, and put the following on the first line:
ENV['RAILS_ENV'] = 'production'
Now everything is golden. Installs are no problem. Is this dumb or
bad practice for some reason?
I believe that the general practice is to run rake as:
rake production ....
when installing extensions, etc.
I don't think people would usually change boot.rb - on the other hand,
if it works for you, it 'works for you' :)
6/16/2009 | 1:04 PM.
Radiant mailing list