DEV Community

Discussion on: How to deploy an Express app for free?

Collapse
 
mattiascibien profile image
Mattias Cibien • Edited

Every thing you deploy on heroku must be listening on $PORT. You should get it by querying the environment variable inside your express app.

I suggest you check devcenter.heroku.com/articles/depl...

Collapse
 
mattiascibien profile image
Mattias Cibien

You can also see how to do that in the heroku help help.heroku.com/P1AVPANS/why-is-my...