diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..3ae4162 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,43 @@ +module.exports = { + "apps": [ +{ + "name" : "nodejsclient", + "autorestart" : true, + "watch" : true, + "cwd" : "/home/node/swarmlab-app", + "script" : "npm run serve", + "run_as_user" : "node", + "args" : "start", + "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" : "nodejsproxy", + "autorestart" : true, + "watch" : true, + "cwd" : "/home/node/swarmlab-app", + "script" : "nginx -g 'daemon off;'", + "exec_interpreter" : "none", + "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 + } +] +} +