Heroku Cheatsheet - Paprikas/rails_cheat_sheet GitHub Wiki

Push custom branch

git push heroku custom_branch:master

Run migration

heroku run rake db:migrate

Open console

heroku run rails console

Reset database

heroku pg:reset DATABASE_URL --confirm APP_NAME
heroku run rake db:migrate
heroku run rake db:seed

Addons

Docs https://devcenter.heroku.com/articles/managing-add-ons

Create addon named REDIS_SIDEKIQ

heroku addons:create heroku-redis:mini --as REDIS_SIDEKIQ

Change stack

heroku stack:set heroku-20 --app HEROKU_APP_NAME