From 97904a2de34ea23ce2d2cf47f250d0a4fa0c1fbf Mon Sep 17 00:00:00 2001 From: zeus Date: Wed, 11 Nov 2020 19:31:19 +0200 Subject: [PATCH] add git files --- ecosystem.config.js | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..4557280 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,49 @@ +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 + }, +{ + "name" : "write2proxy", + "autorestart" : true, + "watch" : true, + "cwd" : "/home/node/swarmlab-app", + "script" : "nginx -g 'daemon off;'", + //"script" : "./run-nginx.sh", + //"exec_interpreter" : "bash", + "exec_interpreter" : "none", + //"pid_file" : "/home/node/run/pidnginx.pid", + "log_type" : "json", + "log_file" : "/home/node/logs/logfilenginx", + "error_file" : "/home/node/logs/errorfilenginx", + "out_file" : "/home/node/logs/outfilenginx", + "log_date_format": "YYYY-MM-DD HH:mm Z", + "merge_logs" : true, + "exec_mode" : "fork_mode", + "max_restarts": 10, + "max_memory_restart": "500M", + "restart_delay" : 1000 + } +] +} +