首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用meteor-up时出现Mup设置/部署错误

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

Stack Overflow用户
提问于 2015-09-05 09:27:51
回答 1查看 593关注 0票数 0

我想使用meteor-up部署我的网站。我想把它部署到亚马逊网络服务上的一个EC2实例。我已经创建了我的mup.json文件,并进行了如下配置:

代码语言:javascript
复制
{
  // 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
}

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

代码语言:javascript
复制
 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)
EN

回答 1

Stack Overflow用户

发布于 2015-09-06 01:03:50

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

详细输出

如果您需要查看meteor-up的输出(例如,为了更精确地查看它出现故障或挂起的位置),可以像这样运行它:

代码语言:javascript
复制
DEBUG=* mup <command>

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32408659

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档