【发布时间】:2015-09-07 10:29:36
【问题描述】:
我想使用meteor-up 部署我的网站。我想将它部署到 AWS 上的 EC2 实例。我已经创建了我的 mup.json 文件并将其配置如下:
{
// 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
}
不幸的是,这不起作用,我收到以下错误:
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)
【问题讨论】:
-
你能发布一些来自
mup logs -f的输出 -
它向我抛出了完全相同的错误消息。感谢您的关注,我真的很想建立我的网站。还有其他想法吗?
-
mup logs -n 300怎么样?您使用的是mup还是mupx? -
我正在使用mup。我输入了mup logs -n 300,同样的错误又出现了。还是真的迷路了
标签: amazon-web-services meteor amazon-ec2 web-deployment