我正在尝试使用以下命令使用流星星系部署我的应用程序
DEPLOY_HOSTNAME=us-east-1.galaxy-deploy.meteor.com meteor deploy icrm.meteorapp.com --settings scalingo.json
但我收到了这个错误
MongoError: not authorized on local to execute command { find: "oplog.rs", filter: {}, sort: { $natural: -1 }, projection: { ts: 1 }, limit: 1 }
在日志中
在我的 scalingo.json 中,我设置如下
"galaxy.meteor.com": {
"env": {
"MONGO_URL": "mongodb://username:password@ds137100.mlab.com:37100/icrm",
"MONGO_OPLOG_URL": "mongodb://username:password@ds137100.mlab.com:37100/local?authSource=icrm",
"ROOT_URL": "http://icrm.meteorapp.com/"
}
}
当我访问http://icrm.meteorapp.com/ 我得到
503 Service Unavailable: No healthy endpoints to handle the request.
我知道我在设置 MONGO_OPLOG_URL 时犯了一些错误,我在 MONGO_URL 和 MONGO_OPLOG_URL 中都写了相同的用户名和密码,我使用的是免费沙盒版本,请帮我解决这个问题,如果可能的话,建议我使用免费沙盒版本的解决方案。 ..
非常感谢