Skip to content

Instantly share code, notes, and snippets.

@shadowdestiny
Forked from 23maverick23/heroku_commands.sh
Created November 3, 2018 22:01
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 shadowdestiny/16a7ef924cf7b9ba96859d8de87d2f25 to your computer and use it in GitHub Desktop.
Save shadowdestiny/16a7ef924cf7b9ba96859d8de87d2f25 to your computer and use it in GitHub Desktop.
Bash: Heroku bash commands
# Heroku Django Commands #
# ---------------------- #
# Push local git changes to heroku
git push heroku master
# Login to heroku via toolbelt
heroku login
# View heroku processes
heroku ps
# Create a new superuser for logging into the Admin site
heroku run python manage.py createsuperuser
# Update the database with any changes made locally
heroku run python manage.py syncdb
# Show heroku log output
heroku logs
# To follow the logs...
heroku logs --tail
# Open heroku app in browser
heroku open
# Run bash commands on heroku
heroku run bash
# Run bash commands on heroku and stay in
heroku run bash -i -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment