问题描述:

I am using Meteor Up (MUP) to deploy my Meteor App to AWS AMAZON EC2.

When I do a mup deploy I get the following errors:

[54.191.118.74] x Invoking deployment process: FAILED

-----------------------------------STDERR-----------------------------------

gyp ERR! node -v v0.12.4

gyp ERR! node-gyp -v v3.3.1

gyp ERR! not ok

npm WARN package.json [email protected] No description

npm WARN package.json [email protected] No repository field.

npm WARN package.json [email protected] No README data

npm WARN package.json [email protected] No license field.

child_process: customFds option is deprecated, use stdio instead.

../src/coroutine.cc: In function ‘void* find_thread_id_key(void*)’:

../src/coroutine.cc:90:3: warning: ‘thread_id’ may be used uninitialized in this function [-Wmaybe-uninitialized]

if (tls == thread_id) {

^

stop: Unknown instance:

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (7) Failed to connect to localhost port 80: Connection refused

Latest deployment failed! Reverted back to the previous version.

I am very new to AWS and MUP so I'm not sure if I configure the file wrongly, below is my mup.json file. The node version is the same as my local machine so I'm not sure where went wrong.

{

// Server authentication info

"servers": [

{

"host": "54.191.118.74",

"username": "ubuntu",

//"password": "password"

// or pem file (ssh based authentication)

"pem": "~/.ssh/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.12.4",

// Install PhantomJS in the server

"setupPhantom": true,

// 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": "castledefence",

// Location of app (local directory)

"app": "~/Desktop/TD",

// Configure environment

"env": {

"ROOT_URL": "http://ec2-54-191-118-74.us-west-2.compute.amazonaws.com",

"PORT": "80",

"MONOG_URL": "mongodb://localhost:27017/castledefence"

},

// 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": 30

}

相关阅读:
Top