Skip to content

Instantly share code, notes, and snippets.

@23maverick23
Last active July 12, 2022 15:39
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save 23maverick23/5acc25a004680b4f2038 to your computer and use it in GitHub Desktop.
Save 23maverick23/5acc25a004680b4f2038 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
@shadowdestiny
Copy link

good, thank!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment