【发布时间】: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