My RAILS_ROOT is /usr/local/www/application/
If I run 'rake db:migrate RAILS_ENV=production" from within the RAILS_ROOT it works fine.
However I can't seem to find a way to run the same command from outside the RAILS_ROOT.
Try:
rake -f $RAILS_ROOT/Rakefile db:migrate RAILS_ENV=production
# Assuming you set the environment variable.
# Else, just replace $RAILS_ROOT by actual value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With