Skip to content

Instantly share code, notes, and snippets.

@connoro7
Created July 16, 2020 19:22
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 connoro7/acab6dd0420657bac492ccbcc9d44c8f to your computer and use it in GitHub Desktop.
Save connoro7/acab6dd0420657bac492ccbcc9d44c8f to your computer and use it in GitHub Desktop.
Heroku Quick Reference Sheet

Heroku Quick Reference

heroku login # login once
heroku create [name] # Initializes heroku app and adds remote.
heroku addons:create heroku-postgresql # add a postgres db addon to your heroku app
heroku logs [--tail] # Shows heroku server terminal
heroku pg:psql # connect to heroku addon database server
heroku config # shows heroku environment variables
  - heroku config:set clown=fiesta # set a config variable
git push heroku master # deploy latest code to heroku
heroku open # open heroku url in browser
heroku run knex migrate:latest # run migrations on production db
heroku run knex seed:run  # run seeds on production db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment