使用MUP将Meteor应用程序部署到Ubuntu EC2实例 版本/背景
我使用的是meteor up(mup)的0.7.6版,meteor 1.0.2.1版,它使用了我所读到的Mongo v0.10.33 我正在使用AWS上的小型Ubuntu服务器14.04 LTS(HVM),SSD卷类型-使用MUP将Meteor应用程序部署到Ubuntu EC2实例 版本/背景,ubuntu,meteor,amazon-ec2,bcrypt,meteor-up,Ubuntu,Meteor,Amazon Ec2,Bcrypt,Meteor Up,我使用的是meteor up(mup)的0.7.6版,meteor 1.0.2.1版,它使用了我所读到的Mongo v0.10.33 我正在使用AWS上的小型Ubuntu服务器14.04 LTS(HVM),SSD卷类型-ami-3d50120dEC2实例作为Meteor应用程序的目标 我的域名指向ami-3d50120d实例的弹性IP(我在这里称它为domain name) 我能够在新的ami-3d50120d上进行mup设置,在那里我成功地安装了Mongo和Node,输出结果如下: [doma
ami-3d50120d
EC2实例作为Meteor应用程序的目标
我的域名指向ami-3d50120d
实例的弹性IP(我在这里称它为domain name
)
我能够在新的ami-3d50120d
上进行mup设置,在那里我成功地安装了Mongo和Node,输出结果如下:
[domain-name.com] - Installing Node.js
[domain-name.com] ✔ Installing Node.js: SUCCESS
[domain-name.com] - Setting up Environment
[domain-name.com] ✔ Setting up Environment: SUCCESS
[domain-name.com] - Copying MongoDB configuration
[domain-name.com] ✔ Copying MongoDB configuration: SUCCESS
[domain-name.com] - Installing MongoDB
[domain-name.com] ✔ Installing MongoDB: SUCCESS
[domain-name.com] - Configuring upstart
[domain-name.com] ✔ Configuring upstart: SUCCESS
{
// Server authentication info
"servers": [
{
"host": "domain-name.com",
"username": "ubuntu",
// or pem file (ssh based authentication)
"pem": "/Users/user-name/Meteor/pem-file-name.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.33 by default. Do not use v, only version number.
"nodeVersion": "0.10.33",
// Install PhantomJS in the server
"setupPhantom": false,
// Application name (No spaces)
"appName": "application-name",
// Location of app (local directory)
"app": "/Users/user-name/Meteor/application-name",
// Configure environment
"env": {
"PORT": 80,
"ROOT_URL": "http://domain-name.com",
"MONGO_URL": "mongodb://localhost:27017/clients-database"
},
// 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
}
重新创建错误条件的步骤
创建了一个新的Ubuntu实例
已分配链接到我的域的弹性IP
配置了我的mup.json文件(将在下面详细说明)
mup安装->所有安装成功吗
ssh已经进入我的实例,并执行了一个节点-v
->v0.10.33
回到我的OSX盒->做了一个节点-v
->v0.10.32
是否发生mup部署->错误情况
错误条件
注
我想我的OSX盒上安装了节点v0.10.32(我的amazon实例上安装了节点v0.10.33),但这不会影响Meteor版本1.2.1的节点版本,因为据我所知,它有自己的节点版本
mup配置
My mup.json,其中domain name.com
指向分配给实例的弹性IP,如下所示:
[domain-name.com] - Installing Node.js
[domain-name.com] ✔ Installing Node.js: SUCCESS
[domain-name.com] - Setting up Environment
[domain-name.com] ✔ Setting up Environment: SUCCESS
[domain-name.com] - Copying MongoDB configuration
[domain-name.com] ✔ Copying MongoDB configuration: SUCCESS
[domain-name.com] - Installing MongoDB
[domain-name.com] ✔ Installing MongoDB: SUCCESS
[domain-name.com] - Configuring upstart
[domain-name.com] ✔ Configuring upstart: SUCCESS
{
// Server authentication info
"servers": [
{
"host": "domain-name.com",
"username": "ubuntu",
// or pem file (ssh based authentication)
"pem": "/Users/user-name/Meteor/pem-file-name.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.33 by default. Do not use v, only version number.
"nodeVersion": "0.10.33",
// Install PhantomJS in the server
"setupPhantom": false,
// Application name (No spaces)
"appName": "application-name",
// Location of app (local directory)
"app": "/Users/user-name/Meteor/application-name",
// Configure environment
"env": {
"PORT": 80,
"ROOT_URL": "http://domain-name.com",
"MONGO_URL": "mongodb://localhost:27017/clients-database"
},
// 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
}
在我的案例中,解决方案是双重的。同样,我使用的是一个小型Ubuntu服务器14.04 LTS(HVM),SSD卷类型——ami-3d50120d EC2实例
首先,我安装了节点版本0.10.35,而不是使用mup安装的0.10.33
我在那个节点的印象中:0.10.33(从0.10.29)被Meteor v1.0.22014-Dec-19使用
其次,我更改了AWS安全组的入站/出站规则。我只添加了HTTP入站和所有出站流量类型 我确实有些问题。你是不是厌倦了用ubuntu 14.10代替ubuntu 14.04 LTS。我不确定,手动安装node gyp怎么样。我试过了,还是没有成功。我的问题在这里,让我们来看看。