DEV Community

Discussion on: How to Dockerize a Node app and deploy to Heroku

Collapse
 
pacheco profile image
Thiago Pacheco

Hello Rodrigo, I am so sorry for the delay, I think I missed your comment before.

Based on the logs you sent, it seems like you don't have the MONGODB_URI environment variable defined in your application, so the app is trying to connect to a database in localhost:27017 that does not exist.