Skip to content

Instantly share code, notes, and snippets.

@hezhao hezhao/heroku_cmd.sh
Last active Feb 6, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.