- 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
- Seed the db
heroku run knex seed:run
- Look at your data!
heroku pg:psql\dtselect * from <table_name>