forked from jpotts18/mean-stack-relational
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pm2-ecosystem.json
28 lines (28 loc) · 947 Bytes
/
pm2-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
{
"apps" : [{
// mean-stack-relational app
"name" : "msr",
"script" : "app.js",
// by default, the app runs in fork mode, uncomment below to run in cluster mode
//"instances" : 4,
//"exec_mode" : "cluster_mode", // defaults to fork
"args" : ["--color"],
"watch" : true,
"ignore_watch" : ["pids", "logs", "node_modules", "bower_components"],
"merge_logs" : true, // merge logs from all instances in cluster mode
"cwd" : ".",
"error_file" : "./logs/msr.log",
"out_file" : "./logs/msr.log",
"pid_file" : "./pids/msr.pid",
"min_uptime" : "30s", // defaults to 1000s
"max_restarts" : 30, // defaults to 15
"restart_delay" : 1000,
"max_memory_restart" : "8G", // restart app if it reaches an 8GB memory footprint
"env": {
"NODE_ENV": "development"
},
"env_production" : {
"NODE_ENV": "production"
}
}]
}