$ curl https://install.meteor.com/ | sh
$ meteor create myapp
$ meteor deploy *.meteor.com
username: smartx
password: ********
$ meteor list-sites
所有设置都在客户端这边完成, 然后通这命令去运程到服务器上进行自动安装软件和配置环境.
$ meteor create --package 包名
$ meteor add 包名
// ubuntu 64bit v14.04 LTS, 记得 update
$ npm -g install git+https://github.com/RockaLabs/meteor-up.git#muprockanew
$ muprockanew setup --config mupx.json
$ muprockanew deploy --config mupx.json
附上配置文件mupx.json
{
"servers": [
{
"host": "server_ip",
"username": "root",
//"pem": "~/.ssh/id_rsa",
"password": "root user passwd"
}
],
"setupMongo": true,
"appName": "mobileweb",
"app": "~/mobile-web", //网站文件存放的目录
"env": {
"PORT": 80,
"ROOT_URL": "http://demo.plw.io"
},
"deployCheckWaitTime": 60,
"enableUploadProgressBar": true
}