-
Notifications
You must be signed in to change notification settings - Fork 125
/
ecosystem.json
44 lines (44 loc) · 1.16 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
{
"apps" : [
{
"name" : "radon-ui",
"script" : "./app.js",
"watch": true,
"max_memory_restart": "1024M",
"instances" : "1",
"exec_mode": "cluster",
"log_date_format": "YYYY-MM-DD HH:mm Z",
"error_file": "/data/logs/node/radon_error.log",
"out_file": "/data/logs/node/radon-out.log",
"env": {
"SERVER_CONFIG": "development",
"NODE_ENV": "development"
},
"env_testing" : {
"SERVER_CONFIG": "testing",
"NODE_ENV": "production",
"NODE_APP_INSTANCE" : 0
},
"env_simulation" : {
"SERVER_CONFIG": "simulation",
"NODE_ENV": "production",
"NODE_APP_INSTANCE" : 0
},
"env_production" : {
"SERVER_CONFIG": "production",
"NODE_ENV": "production",
"NODE_APP_INSTANCE" : 0
}
}
],
"deploy" : {
"testing" : {
"user" : "root",
"host" : "192.168.100.50",
"ref" : "origin/master",
"repo" : "[email protected]:FE/radon-ui.git",
"path" : "/frontend/radon-ui",
"post-deploy" : "npm install; pm2 startOrRestart ecosystem.json --env testing"
}
}
}