I’m doing a capstone I have to deliver, I did an app node.js + angular + mongodb that I’m deploy on heroku.
The problem is that the db data I put in mLab can not be seen.
After creating on mLab the DB and User, on heroku I created the environment variable:
MONGODB_URI mongodb: // <dbuser @ ds125774.mlab.com: 25774 / dbname
in db.js file I wrote:
var dburl = process.env.MONGODB_URI || ‘Mongodb: // localhost: 27017 / hotel’;
In the terminal I wrote: heroku config: set MONGODB_URI = mongodb: // <dbuser @ ds125774.mlab.com: 25774 / dbname
what is missing?