Sign in

I had some trouble deploying my NestJS/Postgres server to Heroku. To save anyone else (and possibly my future self) the headache, here are the steps. Repo here for reference/cloning.

Prerequisites

Steps

1. Create your app in heroku

In your app’s root directory create the heroku app with heroku create <app-name>. Your app should now exist in heroku. Login to check.

2. Deploy your app

Heroku has a couple deployment options. You’ll most likely want to use the connect to GitHub option. Your…

Kevin Grassi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store