1

我使用 Ubuntu 14.04 设置了一个标准的 Amazon Micro 实例,设置了一个 sudo 用户,并且基本上按照 Meteor Up 的说明进行操作。我在“调用部署过程”阶段收到此错误...

 -----------------------------------STDERR-----------------------------------
        Warning: Permanently added 'ec2-54-200-136-28.us-west-2.compute.amazonaws.com,54.200.136.28' (ECDSA) to the list of known hosts.
        npm http GET https://registry.npmjs.org/fibers
        npm http 304 https://registry.npmjs.org/fibers
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 80: Connection refused
        Latest deployment failed! Reverted back to the previous version.
        -----------------------------------STDOUT-----------------------------------

        > fibers@1.0.1 install /opt/meteor/tmp/bundle/programs/server/node_modules/fibers
        > node ./build.js

难道我做错了什么?我在 Amazon EC2 设置中打开了端口 80,我的 mup.json 文件如下所示:

{
  // Server authentication info
  "servers": [
    {
      "host": "[amazon_IP]",
      "username": "ubuntu",
      "password": "password"
      // or pem file (ssh based authentication)
      //"pem": "~/.ssh/id_rsa"
    }
  ],

  // 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.25 by default. Do not use v, only version number.
  "nodeVersion": "0.10.25",

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

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

  // Location of app (local directory)
  "app": "/home/meteor_apps/thestory",

  // Configure environment
  "env": {
    "PORT": 80,
    "ROOT_URL": "http://54.200.136.28"
  },

  // 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
}

我只是将我的 ROOT_URL 设置为 Amazon 公共 IP……不太确定 Meteor 在哪里使用 ROOT_URL 环境变量

4

1 回答 1

2

使用微实例,Meteor 需要更长的时间才能完成捆绑您的应用程序。增加到deployCheckWaitTime类似300(5分钟)。

发生的事情是 Meteor up 放弃等待它完成,所以你需要增加这个超时。

此外,您可能需要检查节点版本,根据您的 Meteor 版本,您可能需要使用更高版本,例如 0.10.28 用于 0.8.1.2/3。您可以尝试安装它,但如果遇到问题,您需要mup setup再次运行或手动安装节点。

于 2014-05-23T18:24:33.517 回答