2014-01-22 54 views
1

Saludos,我想用流星来部署一个应用程序,我刚刚完成了发现流星。AWS EC2部署瓦特/流星MUP配置

MUP看起来没有验证失败。这里的错误:

Meteor-UP : Production Quality Meteor Deployments 
-------------------------------------------------- 


Started TaskList: Setting Up 
[XX.XX.127.0] installing node 
[XX.XX.127.0] installing node: FAILED 

-----------------------------------STDERR----------------------------------- 
Warning: Permanently added 'XX.XX.127.0' (RSA) to the list of known hosts. 
Permission denied (publickey). 

我是新来的流星AWS/EC2和我敢肯定,我正在做一个配置错误,但据我的新秀眼里能看到我把一切都建立了,它似乎非常简单。

这是我的mup.json文件(W /省略敏感数据):

{ 
//server authentication info 
"servers": [ 
    { 
    "host": "XX.XX.127.0", //Public IP address 
    "username": "xxxx", //AWS username from 'IAM' section 
    "password": "xxxx", //corresponding password 
    "pem": "/Users/Me/Desktop/fauxappname/xxxKeys.pem" 
    } 
], 

//install MongoDB in the server 
"setupMongo": false, 

//location of app (local directory) 
"app": "/Users/Me/Desktop/fauxappname", 

//configure environmental 
"env": { 
    "ROOT_URL": "http://example.com", 
    "MONGO_URL": "mongodb://username:[email protected]:10029/fauxappname" 
}, 

"deployCheckWaitTime": 5 

}

一旦配置文件设置,那么你只是在一个单独的目录中运行“安装MUP”这个信息在控制台内。 mup.json文件指向实际的应用程序位置。

任何援助将受到欢迎。如果任何人有任何资源帮助他们部署,我也会对此感兴趣。 THX

+3

'Permission denied(publickey)'是SSH错误。你是否证实你可以用这个密钥ssh进入你的服务器? –

+0

我正在使用SSHPass - https://gist.github.com/arunoda/7790979,如果您使用“基于密码的身份验证”,则在Discover Meteor中推荐。我通过没有错误的自制指令安装。 – Colton45

+2

不能回答我的问题。我只是建议检查你是否可以真正进入机器。 –

回答

3

我面临同样的问题,但在mup.json改变这一部分的下面安装帮助没有问题:

"servers": [ 
    { 
     "host": "xx.xx.xx.xx", //AWS Public IP Address 
     "username": "ubuntu", //default username for AWS instance 
     "pem": "/Users/Dropbox/appname/xxx.pem" 
    } 
    ], 
    ........ 

没有必要给予实际的密码,因为我猜PEM文件正在将SSH作业执行到您的实例中。