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
Created
June 13, 2017 13:10
-
-
Save w3cj/c6a6efc64dc583f4a8f2a90dba5e723a to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ran into the bellow error while running this
Error: Missing required flag: -a, --app APP app to run command against
solved it by:
heroku addons:create heroku-postgresql:[plane-name] -app [project-name] # add a postgres db addon to your heroku app where plane-name = hobby-dev