- Create a new heroku remote
heroku create
- Push your code to heroku
git push heroku master
- Add the heroku postgres addon
heroku addons:create heroku-postgresql:hobby-dev
- Open your heroku app from the command line
heroku open
- Run knex migrations
heroku run knex migrate:latest