流星最多部署到Amazon EC(Ubuntu的14.04)无法正常工作最多、无法正常、流星、工作

由网友(我老婆说夏天不许看美女)分享简介:我的设置与Ubuntu 14.04标准亚马逊微实例,设置sudo的用户,基本上遵循流星最多的说明。我得到这个错误在调用部署过程的阶段... I setup a standard Amazon Micro instance with Ubuntu 14.04, set a sudo user, and basicall...

我的设置与Ubuntu 14.04标准亚马逊微实例,设置sudo的用户,基本上遵循流星最多的说明。我得到这个错误在调用部署过程的阶段...

I setup a standard Amazon Micro instance with Ubuntu 14.04, set a sudo user, and basically followed the instructions for Meteor Up. I get this error at the "Invoking deployment process" stage...

 -----------------------------------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文件看起来是这样的:

am I doing something wrong? I've got port 80 opened in the Amazon EC2 settings and my mup.json file looks like this:

{
  // 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是亚马逊的公共IP ......真的不知道在哪里流星使用ROOT_URL ENV变量

I just set my ROOT_URL to be the Amazon Public IP... not really sure where Meteor uses ROOT_URL env variable

推荐答案

通过微比如,它需要较长时间的流星多达完成捆绑您的应用程序。增加 deployCheckWaitTime 来像 300 (5分钟)。

With a micro instance it takes a bit longer for Meteor up to finish bundling your app. Increase deployCheckWaitTime to something like 300 (5 minutes).

发生了什么是流星了放弃等待它完成,所以你需要增加此超时。

Whats happening is Meteor up gives up waiting for it to finish, so you need to increase this timeout.

另外,你可能要检查的节点版本,根据您的流星版本,您可能需要使用更高版本,如0.10.28为0.8.1.2/3。你可以尝试安装它,但如果你遇到麻烦,你需要手动 MUP设置再次运行或安装节点。

Also you might want to check the node version, depending on your Meteor version you may need to use a later version such as 0.10.28 for 0.8.1.2/3. You could try installing it but if you run into trouble you would need to run mup setup again or install node manually.

阅读全文

相关推荐

最新文章