Created
May 30, 2022 11:54
-
-
Save zshanabek/94217f501bdb35f8246ad12c486d204a to your computer and use it in GitHub Desktop.
Useful Heroku CLI Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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