我第一次尝试部署我的流星应用程序。我使用了以下说明 - here(对不起俄语,你可以阅读代码行)。在完成所有步骤后,我收到了这个错误。
localhost:31000就是我将MongoDB变量设置为 - export MONGO_URL=mongodb://localhost:31000/meteor
请有人帮助我,至少找到一种我需要开始挖掘的方法吗?
Error: failed to connect to [localhost:31000]
at Object.Future.wait (/home/concordls/public_html/dcmDeploy/bundle/programs/server/node_modules/fibers/future.js:398:15)
at new MongoConnection (packages/mongo/mongo_driver.js:213:1)
at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:1)
at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:1)
at Object.defaultRemoteCollectionDriver (packages/underscore/underscore.js:750:1)
at new Mongo.Collection (packages/mongo/collection.js:102:1)
at AccountsServer.AccountsCommon (accounts_common.js:23:18)
at new AccountsServer (accounts_server.js:16:5)
at Package (globals_server.js:5:12)
at /home/concordls/public_html/dcmDeploy/bundle/programs/server/packages/accounts-base.js:1814:4
- - - - -
at [object Object].<anonymous> (/home/concordls/public_html/dcmDeploy/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:556:74)
at [object Object].emit (events.js:106:17)
at [object Object].<anonymous> (/home/concordls/public_html/dcmDeploy/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)
at [object Object].emit (events.js:98:17)
at Socket.<anonymous> (/home/concordls/public_html/dcmDeploy/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)
at Socket.emit (events.js:95:17)
at net.js:441:14
at process._tickCallback (node.js:448:13)
error: Forever detected script exited with code: 8
error: Script restart attempt #4
答案 0 :(得分:0)
相反,您应该使用Meteor Up,它正是您在没有手动执行命令的情况下所做的事情。
生产质量流星部署
Meteor Up(简称mup)是一个命令行工具,允许您将任何Meteor应用程序部署到您自己的服务器。它仅支持Debian / Ubuntu版本和Open Solaris。