-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpm2.json
32 lines (31 loc) · 917 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
{
/**
* This is a sample configuration file for PM2
*/
/**
* Here we declare the apps that must be managed by PM2
* All options are listed here:
* https://github.com/Unitech/PM2/blob/master/ADVANCED_README.md#json-app-declaration
*
*/
"apps" : [{
"name" : "bang",
"script" : "server.js",
"env": {
"COMMON_VARIABLE": "true",
"NODE_ENV": "production",
"BABEL_DISABLE_CACHE": 1
},
"exec_interpreter" : "node",
"node_args" : "--harmony",
"exec_mode" : "cluster_mode",
"instances" : 2,
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"max_memory_restart" : "700M",
"merge_logs" : true,
"error_file" : "/var/bang/error.log",
"out_file" : "/var/bang/out.log",
"pid_file" : "/var/bang/bang.pid",
"watch" : false
}]
}