【问题标题】:I can not link my mlab database address in meteor up我无法在流星中链接我的 mlab 数据库地址
【发布时间】:2023-03-15 20:34:01
【问题描述】:

我正在尝试将我的流星应用程序部署到 digitalocean。我已经在环境变量的 mup.js 中设置了我的 mlab 数据库地址,但是当我登录到我的 mlab 配置文件来管理我的数据库时。我的应用程序没有在 mlab 地址中注册数据,而是在我不知道在哪里的另一部分注册数据。当我在环境变量的mup.js中设置我的地址时。

这个应用程序在哪里插入数据?因为它没有像我之前定义的那样在我的 mlab 地址中进行。

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

  app: {
    // TODO: change app name and path
    name: 'perfilesgs',
    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://1.2.3.4',
      MONGO_URL: 'mongodb://user:pass@mlab_server:port/perfilesgs',
    },

    // ssl: { // (optional)
    //   // Enables let's encrypt (optional)
    //   autogenerate: {
    //     email: 'email.address@domain.com',
    //     // comma separated list of domains
    //     domains: 'website.com,www.website.com'
    //   }
    // },

    docker: {
      // change to 'kadirahq/meteord' if your app is using Meteor 1.3 or older
      image: 'abernix/meteord:base',
      prepareBundle: false
    },

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

  mongo: {
    version: '3.4.1',
    servers: {
      one: {}
    }
  }
};

【问题讨论】:

    标签: mongodb meteor deployment


    【解决方案1】:

    根据this,你只需要去掉这部分:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-28
      • 2016-09-09
      • 1970-01-01
      • 2017-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-06
      相关资源
      最近更新 更多