-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpm2.json
41 lines (41 loc) · 929 Bytes
/
pm2.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
{
"apps": [{
"name": "bp_monitor",
"script": "./src/bp_monitor.js",
"node_args": "--max_old_space_size=1024",
"instances": 1,
"max_memory_restart": "512M",
"autorestart": true,
"merge_logs": true,
"watch": ["src"],
"instance_var": "INSTANCE_ID",
"watch_options": {
"usePolling": true
},
"env": {
"NODE_ENV": "production"
},
"error_file": "./logs/pm2-bp-err.log",
"out_file": "./logs/pm2-bp-out.log"
},
{
"name": "node_monitor",
"script": "./src/node_monitor.js",
"node_args": "--max_old_space_size=1024",
"instances": 1,
"max_memory_restart": "512M",
"autorestart": true,
"merge_logs": true,
"watch": ["src"],
"instance_var": "INSTANCE_ID",
"watch_options": {
"usePolling": true
},
"env": {
"NODE_ENV": "production"
},
"error_file": "./logs/pm2-node-err.log",
"out_file": "./logs/pm2-node-out.log"
}
]
}