-
Notifications
You must be signed in to change notification settings - Fork 2
Useful Commands (Heroku)
Jia Yee edited this page Jul 29, 2016
·
1 revision
Update your credentials...
heroku login
I can't call db:migrate:reset and db:rollback wasn't effective
heroku pg:reset DATABASE
Migrate
heroku run rake db:migrate
heroku run bundle exec rake db:migrate
Status (up/down)
heroku run rake db:migrate:status
heroku run bundle exec rake db:migrate:status
Undo migrate
heroku run rake db:rollback
heroku run bundle exec rake db:rollback
List of deployments
heroku releases
When the latest deployment is disastrous...
heroku rollback
heroku rollback v1
v1 can be v2, v3, and so on...
Configure environment variables (e.g. API keys) https://devcenter.heroku.com/articles/config-vars