Im finding trouble connecting to my MongoDb Atlas Cluster from Vultr. After successful deployment, my app connects to the local database not the Mongo Atlas db. Please help… here is my mup.js
module.exports = {
servers: {
one: {
// TODO: set host address, username, and authentication method
host: ‘XX.XX.XX.XXX’,
username: ‘root’,
// pem: './path/to/pem’
password: ‘XXXXXXXXXXXX’
// or neither for authenticate from ssh-agent
}
},
meteor: {
// TODO: change app name and path
name: ‘myapp’,
path: ‘…’,
servers: {
one: {},
},
buildOptions: {
serverOnly: true,
},
env: {
// TODO: Change to your app's url
// If you are using ssl, it needs to start with https://
PORT: 3000,
ROOT_URL: 'http://localhost',
MONGO_URL: 'mongodb://username:password@clustered-shard-00-00-qrxgl.mongodb.net:27017,clustered-shard-00-01-qrxgl.mongodb.net:27017,clustered-shard-00-02-qrxgl.mongodb.net:27017/clustered?ssl=true&replicaSet=clustered-shard-0&authSource=admin',
},
docker: {
// change to 'kadirahq/meteord' if your app is not using Meteor 1.4
image: 'abernix/meteord:base',
// imagePort: 80, // (default: 80, some images EXPOSE different ports)
},
// This is the maximum time in seconds it will wait
// for your app to start
// Add 30 seconds if the server has 512mb of ram
// And 30 more if you have binary npm dependencies.
deployCheckWaitTime: 120,
// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
enableUploadProgressBar: true
},
//remove this field because you want to use external databse
mongo: {
oplog: true,
port: 27017,
//version: ‘3.4.4’,
servers: {
one: {}
}
}
};