-
Notifications
You must be signed in to change notification settings - Fork 3
/
ecosystem.json
54 lines (54 loc) · 1.18 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"apps": [
{
"name": "web",
"script": "web.js",
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"env_production": {
"NODE_ENV": "production"
}
},
{
"name": "api",
"script": "api.js",
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"env_production": {
"NODE_ENV": "production"
}
},
{
"name": "bree",
"script": "bree.js",
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"env_production": {
"NODE_ENV": "production"
}
},
{
"name": "proxy",
"script": "proxy.js",
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"env_production": {
"NODE_ENV": "production"
}
}
],
"deploy": {
"production": {
"user": "deploy",
"host": "lad-deploy",
"ref": "origin/master",
"repo": "[email protected]:ladjs/lad.sh.git",
"path": "/var/www/production",
"post-deploy": "yarn && NODE_ENV=production yarn start build && pm2 startOrGracefulReload ecosystem.json --env production --update-env"
}
}
}