-
Notifications
You must be signed in to change notification settings - Fork 331
/
pm2.config.js
64 lines (64 loc) · 1.27 KB
/
pm2.config.js
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = {
apps: [
{
name: 'Chronos',
script: 'dist/chronos.js',
instances: 1, // there can only be 1
increment_var: 'SERVER_ID',
autorestart: true,
watch: false,
max_memory_restart: '4096M',
env: {
SERVER_ID: 1
},
env_production: {
NODE_ENV: 'production'
}
},
{
name: 'Web Server',
script: 'dist/web.js',
instances: 2,
increment_var: 'SERVER_ID',
autorestart: true,
watch: false,
max_memory_restart: '8192M',
env: {
SERVER_ID: 2
},
env_production: {
NODE_ENV: 'production'
}
},
{
name: 'Embedder',
script: 'dist/embedder.js',
instances: 1,
increment_var: 'SERVER_ID',
autorestart: true,
watch: false,
max_memory_restart: '4096M',
env: {
SERVER_ID: 5
},
env_production: {
NODE_ENV: 'production'
}
},
{
name: 'GQL Executor',
script: 'dist/gqlExecutor.js',
instances: 2,
increment_var: 'SERVER_ID',
autorestart: true,
watch: false,
max_memory_restart: '24576M',
env: {
SERVER_ID: 6
},
env_production: {
NODE_ENV: 'production'
}
}
]
}