zeus
4 years ago
3 changed files with 31 additions and 25 deletions
@ -0,0 +1,28 @@ |
|||||
|
module.exports = { |
||||
|
"apps": [ |
||||
|
{ |
||||
|
"name" : "write2mongo", |
||||
|
"autorestart" : true, |
||||
|
"watch" : true, |
||||
|
//"script" : "/home/node/swarmlab-app/run/app.js", |
||||
|
"cwd" : "/home/node/swarmlab-app", |
||||
|
"script" : "run/app.js", |
||||
|
"run_as_user" : "node", |
||||
|
"args" : "start", |
||||
|
//"node_args" : "--harmony", |
||||
|
//"node_args" : "['--trace-deprecation']", |
||||
|
"pid_file" : "/home/node/run/pid.pid", |
||||
|
"log_type" : "json", |
||||
|
"log_file" : "/home/node/logs/logfile", |
||||
|
"error_file" : "/home/node/logs/errorfile", |
||||
|
"out_file" : "/home/node/logs/outfile", |
||||
|
"log_date_format": "YYYY-MM-DD HH:mm Z", |
||||
|
"merge_logs" : true, |
||||
|
"exec_mode" : "fork", |
||||
|
"max_restarts": 10, |
||||
|
"max_memory_restart": "500M", |
||||
|
"restart_delay": 1000 |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
|
Loading…
Reference in new issue