zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.28k stars 279 forks source link

MongoDB Atlas not connecting to deployed app #1321

Closed frankwo1 closed 1 year ago

frankwo1 commented 1 year ago

Hi, I am having trouble connecting mongo db atlas to deployed app - seems to be having trouble parsing the mongodb atlas Url It is working fine when deployed on Meteor Galaxy.

Mup version (mup --version): 1.5.9 Mup config

paste config here...

module.exports = { servers: { one: { // TODO: set host address, username, and authentication method host: 'private', username: 'root', // pem: './path/to/pem' password: 'private' // or neither for authenticate from ssh-agent } },

app: { // TODO: change app name and path name: 'example', 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://

// ROOT_URL: 'http://172.105.155.109', // PORT: 27017, ROOT_URL: "https://www.example.com", MONGO_URL: "mongodb+srv://Private:private@private-mobile.wkumg.mongodb.net/private-mobile?retryWrites=true&w=majority" // MONGO_OPLOG_URL: 'mongodb://mongodb/local', },

docker: {
  image: 'zodern/meteor:root',
},

// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
  deployCheckWaitTime: 90,
  enableUploadProgressBar: true

},

mongo: { version: '4.4.12', servers: { one: {} } },

// (Optional) // Use the proxy to setup ssl or to route requests to the correct // app when there are several apps

// proxy: { // domains: 'mywebsite.com,www.mywebsite.com',

// ssl: { // // Enable Let's Encrypt // letsEncryptEmail: 'email@domain.com' // } // } };

Output of command

paste output here...

Everything else is fine except

1 Validation Error

frankwo1 commented 1 year ago

Hi - This works. please close this - I removed the mongo options on the bottom of the setup file and it throws a nasty error at the end of the build but completed mup and works. Thanks