【问题标题】:Mup setup/deploy error when using meteor-up使用meteor-up时的Mup设置/部署错误
【发布时间】:2015-09-07 10:29:36
【问题描述】:

我想使用meteor-up 部署我的网站。我想将它部署到 AWS 上的 EC2 实例。我已经创建了我的 mup.json 文件并将其配置如下:

{
  // Server authentication info
  "servers": [
    {
      "host": "ec2-52-24-95-147.us-west-2.compute.amazonaws.com",
      "username": "ubuntu",
      //"password": "password"
      // or pem file (ssh based authentication)
      "pem": "C:/Users/username/meteor.pem"
    }
  ],

  // Install MongoDB in the server, does not destroy local MongoDB on future setup
  "setupMongo": true,

  // WARNING: Node.js is required! Only skip if you already have Node.js installed on server.
  "setupNode": true,

  // WARNING: If nodeVersion omitted will setup 0.10.36 by default. Do not use v, only version number.
  "nodeVersion": "0.10.35",

  // Install PhantomJS in the server
  "setupPhantom": false,

  // Show a progress bar during the upload of the bundle to the server. 
  // Might cause an error in some rare cases if set to true, for instance in Shippable CI
  "enableUploadProgressBar": true,

  // Application name (No spaces)
  "appName": "Homepage",

  // Location of app (local directory)
  "app": "C:/website",

  // Configure environment
  "env": {
    "ROOT_URL": "ec2-52-24-95-147.us-west-2.compute.amazonaws.com",
    "PORT": 80,
    "METEOR_ENV": "production"
  },

  // Meteor Up checks if the app comes online just after the deployment
  // before mup checks that, it will wait for no. of seconds configured below
  "deployCheckWaitTime": 15
}

不幸的是,这不起作用,我收到以下错误:

 throw er; // Unhandled 'error' event
 ^

Error: connect ETIMEDOUT {public IP from AWS}:22
    at Object.exports._errnoExcpetion (util.js:837:11)
    at exports._excpetionWithHostPort (util.js:860:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1060:14)

【问题讨论】:

  • 你能发布一些来自mup logs -f的输出
  • 它向我抛出了完全相同的错误消息。感谢您的关注,我真的很想建立我的网站。还有其他想法吗?
  • mup logs -n 300 怎么样?您使用的是mup 还是mupx
  • 我正在使用mup。我输入了mup logs -n 300,同样的错误又出现了。还是真的迷路了

标签: amazon-web-services meteor amazon-ec2 web-deployment


【解决方案1】:

根据https://github.com/arunoda/meteor-up,尝试设置DEBUG环境变量:

详细输出

如果您需要查看 meteor-up 的输出(例如,更准确地查看失败或挂起的位置),请像这样运行它:

DEBUG=* mup <command>

mup 命令之一在哪里,例如 setup、deploy 等。

【讨论】:

  • 我在meteor-up github存储库中找到了您所指的内容,但它所说的似乎无法识别此功能。感谢您的关注,我真的很想解决这个问题。您还有其他建议吗?
  • 好的,请发布运行此命令的输出:DEBUG=* mup deploy
  • 它说“调试”不是内部或外部命令、可运行程序或批处理文件。我能够运行 mup logs -f 命令,该命令呈现与发布的相同错误。我有一种感觉,这是一个连接到文件 util.js 的连接问题,但是当我查看文件时我不知道它可能是什么
  • 也许您正在运行 Windows?如果是这样,请尝试以管理员身份运行。无论如何,如果您想查看 cmets,我在 github.com/meteor/meteor/issues/4090 找到了您的错误消息。 HTH。
  • 不,我可以让流星作为命令工作。我的整个网站已设置好并准备就绪,可以使用流星在我的本地主机上运行。是的,我使用 Windows,但我以管理员身份运行,即我是管理员。但是它是受密码保护的,会不会有干扰?
猜你喜欢
  • 2015-11-01
  • 2015-11-10
  • 1970-01-01
  • 2017-08-05
  • 2018-05-08
  • 1970-01-01
  • 2016-11-27
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多