使用meteor-up时Mup设置/部署错误

时间:2015-09-05 01:27:51

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

我想使用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)

1 个答案:

答案 0 :(得分:0)

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

详细输出

如果您需要查看meteor-up的输出(例如,更准确地查看它失败或悬挂的位置),请按以下方式运行:

DEBUG=* mup <command>

其中一个是mup命令,例如setup,deploy等。