【发布时间】:2025-12-17 14:55:01
【问题描述】:
我正在尝试使用以下命令使用流星星系部署我的应用程序
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 中写了相同的用户名和密码,我使用的是免费沙盒版本,请帮我解决这个问题,如果可能的话建议我免费解决沙盒版...
非常感谢
【问题讨论】:
-
由于您使用的是 Scalingo MongoDB,您可能可以直接跳到我的回答中的第 4 步(假设 Scalingo 为您执行了第 1-3 步)。
标签: mongodb meteor meteor-galaxy mlab