deploymentmeteorcompose-dbmeteor-up

What do I set MONGO_OPLOG_URL to in Meteor Up?


I have created a database and a user with oplog access in Compose.io.

The URI I get looks like this:

mongodb://<user>:<password>@lamppost.11.mongolayer.com:10022,lamppost.10.mongolayer.com:10024/cardmaker?replicaSet=set-<bunchOfDigits>

Knowing this, what do I set as MONGO_URL and MONGO_OPLOG_URL in mup.json?

There is literally no documentation on this. :(


Solution

  • Let's say database name: mydatabase username: user password: 123456

    It will be looked like this:

     “MONGO_URL”: “mongodb://user:123456@candidate.11.mongolayer.com:10240,candidate.0.mongolayer.com:10240/mydatabase?replicaSet=set-0123456789″,
     “MONGO_OPLOG_URL”: “mongodb://user:123456@candidate.11.mongolayer.com:10240,candidate.0.mongolayer.com:10240/local?authSource=mydatabase”
    

    Source: Meteor Up Apps Deployment and Oplog-tailing