-
Notifications
You must be signed in to change notification settings - Fork 3
/
ecosystem.json
27 lines (27 loc) · 888 Bytes
/
ecosystem.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"apps" : [{
"name" : "do",
"script" : "app.js",
"env" : {
"COMMON_VARIABLE": "true"
},
"env_production":{
"NODE_ENV":"production"
}
}],
"deploy" : {
"production" : {
"user" : "root",
"host" : ["118.190.206.181"],
"port" : "39999",
"ref" : "origin/master",
"repo" : "git@github.com:snailuncle/jsTree.git",
"path" : "/www/website/production",
"ssh_options": "StrictHostKeyChecking=no",
"post-deploy": "rm -rf /www/website/production/source && cd /www/website/production && git clone git@github.com:snailuncle/jsTree.git && mv jsTree source && cd /www/website/production/source && npm install --registry=https://registry.npm.taobao.org && pm2 startOrRestart ecosystem.json --env production",
"env": {
"NODE_ENV": "production"
}
}
}
}