Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save michaelmiller2116/3708457f05fa5bb4f8210f6f7c8e07c7 to your computer and use it in GitHub Desktop.
Save michaelmiller2116/3708457f05fa5bb4f8210f6f7c8e07c7 to your computer and use it in GitHub Desktop.
How to Deploy An Express App to Heroku with Postgresql Database Using Git

You will need a git repo on the hub before doing this... of course

From server directory:

$ heroku create $ git push heroku master

To display logs for Heroku, use the following command: $ heroku logs --tail

$ heroku addons:create heroku-postgresql:hobby-dev $ heroku config $ heroku run knex migrate:latest To run seeds: $ heroku run knex seed:run

and voila

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