The forms I know of are:
For Rails 3.0:
for rails server:
rails server -e production
for rails console
rails console production
for rake
rake db:migrate RAILS_ENV=production
Is that it? I know for rails runner
and rails dbconsole
, it is -e production
as well. Are there more forms and what are other ones that use -e
vs just the name or needing RAILS_ENV
?
As a sidenote, why so complicated; is it to increase the difficulty so as to embrace the power and charge higher fees in consulting? (just as why in school they teach you to use simple words to get the idea across but in the real world, people use tough words to gain power.)