0

我很高兴得知新的 Meteor 版本支持 Mongo v4。MUP似乎没有...

如果我在 mup.js 中使用这些 mongo 设置运行“mup setup”,一切都会好起来的。

 module.exports = {
  servers: {
    one: {
      host: '****',

    }
  },

meteor: {
name: 'nascholingen',
path: '/webserver/nascholingen',
        volumes:{
        '/webserver/nascholingen/private/.uploads':'/webserver/nascholingen/private/.uploads',
        '/webserver/nascholingen/private/.downloads':'/webserver/nascholingen/private/.downloads',
        '/webserver/nascholingen/backups/nascholingen':'/webserver/nascholingen/backups/nascholingen'
},

servers: {
  one: {
        env:{
                PDFMERGE_PATH: "/usr/bin/pdfmerge",
        }
},
},

buildOptions: {
  serverOnly: true,
},

env: {

  ROOT_URL: '*****',
  MONGO_URL: 'mongodb://localhost/meteor',
        PORT:'3002'
},

docker: {
  image: 'appworkshop/meteord-graphicsmagick-pdftk-node8:node-8.9.1-base',
},

deployCheckWaitTime: 60,


enableUploadProgressBar: false
},
 mongo: {
        port: 27017,
       version: "3.6.16",
        servers: {
          one: {}
        }
  }
};

当我将“版本”更改为 4.0.6 或更高版本时,mup 设置显示:

 Connection refused :
        connect@src/mongo/shell/mongo.js:341:17
        @(connect):2:6
        2019-12-21T18:07:28.576+0000 F  -        [main] exception: connect failed
        2019-12-21T18:07:28.576+0000 E  -        [main] exiting with code 1
        MongoDB shell version v4.2.0
        connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
        2019-12-21T18:07:33.737+0000 E  QUERY    [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: ca

有任何想法吗?

4

0 回答 0