Skip to content

Instantly share code, notes, and snippets.

@hezhao
Last active February 6, 2017 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hezhao/b5b5d57340dcc4714cf8 to your computer and use it in GitHub Desktop.
Save hezhao/b5b5d57340dcc4714cf8 to your computer and use it in GitHub Desktop.
Heroku Commands Cheatsheet
# https://devcenter.heroku.com/articles/getting-started-with-django
# Regions
$ heroku regions
$ heroku create --region eu
# Create
$ heroku create
$ git push heroku master
# Clone existing app
$ heroku login
$ heroku git:clone -a myapp
# Add heroku remote to existing app
$ heroku git:remote -a falling-wind-1624
# Run
$ heroku info
$ heroku ps
$ heroku logs
$ heroku logs -t # shows live logs.
$ heroku run
# Restore database
$ heroku pg:backups restore b011 <APPNAME>::DATABASE --app <APPNAME>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment