linux - 使用 Forever 部署 Meteor

标签 linux meteor deployment

我第一次尝试部署我的 meteor 应用程序。我使用了以下说明 - 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

最佳答案

相反,您应该使用 Meteor Up , 它完全按照您的意愿执行,无需手动执行命令。

Production Quality Meteor Deployments

Meteor Up (mup for short) is a command line tool that allows you to deploy any Meteor app to your own server. It supports only Debian/Ubuntu flavours and Open Solaris at the moments.

Deploying With Digital Ocean, Compose.io, and Meteor Up

关于linux - 使用 Forever 部署 Meteor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36103922/

相关文章:

python - inotify_add_watch 失败并显示 errno ESUCCESS

c - 使用 C 语言编写的 Linux Shell 的 Makefile 时出错

javascript - Meteor Template 助手和 Handlebars 助手之间有什么区别?

meteor - 我可以将 .handlebars 文件与 Meteor 一起使用吗?

php - 带有特使错误的 Laravel 5.1 部署

linux - Docker 权限在设置过程中被拒绝

linux - 如何使用 shell 脚本递归获取所有 jpg 文件

meteor - Meteor.js 中更新 DOM 后的回调

.net - 如何使用命令行实用程序编辑 exe 的资源(文件描述、图标等)?

django - 结构部署问题