[SOLVED] Meteor app on server does not connect to the mondo database


I have deployed to a server using meteor up, the app is there but it does not connect to the database.
I have restored the backup, the databases are there but the meteor app does not access to the db.
I can see and navigate the static pages (pages without content from the db).

meteor:PRIMARY> show databases;
admin 0.000GB
local 7.551GB
meteor 7.599GB
mew 0.000GB

I have the following in my mup.js file:

env: {
  // If you are using ssl, it needs to start with https://
  ROOT_URL: 'http://masseducationweapon.com',
  MONGO_URL: 'mongodb://mongodb/meteor',
  MONGO_OPLOG_URL: 'mongodb://mongodb/local',

console.log(MONGO_URL); is not defined.

What am I doing wrong? How can I fix?


Forget about this one,
the name for the db should be the app’s name instead of meteor so the correct setting is

MONGO_URL: ‘mongodb://mongodb/mew’,

I have:
MONGO_URL: ‘mongodb://localhost/meteor’,

and works good.