summaryrefslogtreecommitdiff
path: root/ecosystem.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'ecosystem.config.js')
-rw-r--r--ecosystem.config.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/ecosystem.config.js b/ecosystem.config.js
new file mode 100644
index 00000000..e639cffd
--- /dev/null
+++ b/ecosystem.config.js
@@ -0,0 +1,24 @@
+module.exports = {
+ apps: [
+ {
+ name: 'evcp',
+ script: 'npm',
+ args: 'run start',
+ cwd: './',
+ instances: 1,
+ autorestart: true,
+ watch: false,
+ max_memory_restart: '8G',
+ env: {
+ NODE_ENV: 'production',
+ NODE_OPTIONS: '--openssl-legacy-provider'
+ },
+ error_file: './logs/pm2-error.log',
+ out_file: './logs/pm2-out.log',
+ log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
+ merge_logs: true,
+ time: true
+ }
+ ]
+};
+