From 0780b8d2d2c6a2a31a2a2a8f4047e5d7bce656f7 Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 28 Nov 2020 18:58:03 +0200 Subject: [PATCH] async --- ecosystem.config.js | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index f03cac5..4557280 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -1,6 +1,6 @@ module.exports = { "apps": [ - { +{ "name" : "write2mongo", "autorestart" : true, "watch" : true, @@ -22,7 +22,28 @@ module.exports = { "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 } - ] +] }