gardesk/tarmac-web / d9c1c09

Browse files

add PM2 ecosystem config

Authored by espadonne
SHA
d9c1c096439a6e197e003a8eef64eadaa1e7ad55
Parents
48d6609
Tree
c723570

1 changed file

StatusFile+-
A ecosystem.config.cjs 25 0
ecosystem.config.cjsadded
@@ -0,0 +1,25 @@
1
+module.exports = {
2
+  apps: [{
3
+    name: 'tarmac-web',
4
+    cwd: '/var/www/tarmac.musicsian.com/current',
5
+    script: 'npm',
6
+    args: 'start',
7
+
8
+    max_restarts: 10,
9
+    min_uptime: '10s',
10
+    restart_delay: 5000,
11
+    exp_backoff_restart_delay: 1000,
12
+
13
+    max_memory_restart: '500M',
14
+
15
+    error_file: '/var/log/tarmac-web/error.log',
16
+    out_file: '/var/log/tarmac-web/out.log',
17
+    merge_logs: true,
18
+    log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
19
+
20
+    env: {
21
+      NODE_ENV: 'production',
22
+      PORT: 3003
23
+    }
24
+  }]
25
+};