From a19383ad7f9e9f2be501d3f2397c1ebe3921017e Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 20 Nov 2020 16:42:46 +0200 Subject: [PATCH] ecosystem --- swarmlab-app/ecosystem.config.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 swarmlab-app/ecosystem.config.js diff --git a/swarmlab-app/ecosystem.config.js b/swarmlab-app/ecosystem.config.js new file mode 100644 index 0000000..63e784f --- /dev/null +++ b/swarmlab-app/ecosystem.config.js @@ -0,0 +1,22 @@ +module.exports = { + "apps": [{ + "name" : "appname", + "autorestart" : true, + "watch" : true, + "script" : "./swarmlab-app/run/app.js", + "args" : "start", + "pid_file" : "/home/ubuntu/run/pid.pid", + "log_type" : "json", + "log_file" : "/home/ubuntu/logs/logfile", + "error_file" : "/home/ubuntu/logs/errorfile", + "out_file" : "/home/ubuntu/logs/outfile", + "log_date_format": "YYYY-MM-DD HH:mm Z", + "merge_logs" : true, + //"instances": 1, + //"exec_mode": "cluster", + "exec_mode" : "fork", + "max_restarts": 10, + "max_memory_restart": "500M", + "restart_delay": 1000 + }] +}