-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.cjs
More file actions
50 lines (50 loc) · 1.2 KB
/
ecosystem.config.cjs
File metadata and controls
50 lines (50 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
apps: [
{
name: 'pinar-backend',
script: 'server/index.js',
cwd: '.',
instances: 1,
exec_mode: 'fork',
autorestart: true,
max_restarts: 20,
restart_delay: 3000,
watch: false,
env: {
NODE_ENV: 'production',
PORT: 5000,
},
env_production: {
NODE_ENV: 'production',
PORT: 5000,
},
},
{
name: 'pinar-watchdog',
script: 'scripts/watchdog.mjs',
cwd: '.',
instances: 1,
exec_mode: 'fork',
autorestart: true,
max_restarts: 20,
restart_delay: 3000,
watch: false,
env: {
NODE_ENV: 'production',
HEALTHCHECK_URL: 'http://127.0.0.1:5000/api/projects',
HEALTHCHECK_INTERVAL_MS: 300000,
HEALTHCHECK_TIMEOUT_MS: 8000,
HEALTHCHECK_FAIL_THRESHOLD: 2,
PM2_TARGET_APP: 'pinar-backend',
},
env_production: {
NODE_ENV: 'production',
HEALTHCHECK_URL: 'http://127.0.0.1:5000/api/projects',
HEALTHCHECK_INTERVAL_MS: 300000,
HEALTHCHECK_TIMEOUT_MS: 8000,
HEALTHCHECK_FAIL_THRESHOLD: 2,
PM2_TARGET_APP: 'pinar-backend',
},
},
],
};