简体   繁体   中英

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. :(

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM