Meteor App Working Locally But Not Loading on Heroku

Hello,

I’ve deployed my Meteor app to Heroku, but it’s not loading properly. Locally, everything works fine, but when I visit the deployed site, I get a 502 Bad Gateway error. I’ve tried checking the logs, and it seems like an issue with server startup, but I’m not sure what exactly is failing.

Thanks!

@loufield

Do you have environment variable for MongoDB setup? Examples:

export MONGO_URL=mongodb://username:password@127.0.0.1:27017/meteor

export MONGO_URL=mongodb://username:password@192.168.0.200:27017/meteor

export MONGO_URL=mongodb://username:password@db.someserver.com:27017/meteor

@loufield

I’ve tried checking the logs, and it seems like an issue with server startup, but I’m not sure what exactly is failing.

Please copy those logs to comment of this forum post. Anonymize any domains and IP addresses.