我使用 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 环境变量