-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathprocess.json
25 lines (25 loc) · 1.05 KB
/
process.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
{
"name" : "pagermon",
"cwd" : "/home/ubuntu/pagermon/server",
"script" : "app.js",
"node_args" : ["--harmony"],
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"error_file" : "logs/node-app.stderr.log",
"out_file" : "logs/node-app.stdout.log",
"pid_file" : "pids/node-geo-api.pid",
"instances" : 1, //or 0 => 'max'
"min_uptime" : "200s", // 200 seconds, defaults to 1000
"max_restarts" : 10, // defaults to 15
"max_memory_restart": "100M", // 1 megabytes, e.g.: "2G", "10M", "100K", 1024 the default unit is byte.
"cron_restart" : "1 0 * * *",
"watch" : false,
"ignore_watch" : ["[\\/\\\\]\\./", "node_modules", "config", "logs"],
"merge_logs" : true,
"exec_interpreter" : "node",
"autorestart" : true, // enable/disable automatic restart when an app crashes or exits
"vizion" : false, // enable/disable vizion features (versioning control)
"env": {
"NODE_ENV": "production",
"APP_NAME": "pagermon"
}
}