Skip to content

Instantly share code, notes, and snippets.

@zshanabek
Created May 30, 2022 11:54
Show Gist options
  • Save zshanabek/94217f501bdb35f8246ad12c486d204a to your computer and use it in GitHub Desktop.
Save zshanabek/94217f501bdb35f8246ad12c486d204a to your computer and use it in GitHub Desktop.
Useful Heroku CLI Commands
heroku login
heroku restart # restarts the Heroku dyno
heroku create <your_app_name>
heroku open # opens up your heroku app
heroku open -a <your_app_name> # when you are working outside your git repo
heroku logs # opens up server logs, very useful for debugging
heroku addons:create <package_name>
heroku pg:info # postgres database info
heroku run bash # opens a bash shell to Heroku machine
heroku run <your command> # e.g. heroku run python manage.py migrate
heroku certs:auto:enable # allow heroku to automatically manage ssl cert
heroku ps:scale web=1:<tier_name> # scale web dyno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment