env SSL=true DATABASE_URL=$(heroku config:get DATABASE_URL) npm run migrate code example Example: how to find my postgres hostname heorku heroku pg:credentials:url