How to set environment variables on Heroku for Node app and connect to the PostgreSQL database? How to set environment variables on Heroku for Node app and connect to the PostgreSQL database? heroku heroku