-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathecosystem.config.js
50 lines (50 loc) · 1.33 KB
/
ecosystem.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
module.exports = {
apps: [
{
name: 'ep-api',
script: 'dist/src/main.js',
watch: false,
time: true,
instances: 'max',
exec_mode: 'cluster',
ignore_watch: ['[/\\]./', 'uploads'],
restart_delay: 10000,
watch_delay: 10000,
cwd: process.cwd(),
log_type: 'json',
error_file: './logs/api-error.json',
log_date_format: 'YYYY-MM-DD HH:mm Z',
max_memory_restart: '2600M',
},
{
name: 'indexer-service',
script: 'pnpm console indexer -l true',
args: 'indexer',
watch: false,
time: true,
ignore_watch: ['[/\\]./', 'uploads'],
watch_delay: 10000,
cwd: process.cwd(),
log_type: 'json',
error_file: `./logs/indexer-error.json`,
log_date_format: 'YYYY-MM-DD HH:mm Z',
exp_backoff_restart_delay: 1000,
max_memory_restart: '600M',
},
{
name: 'notification-service',
script: 'pnpm console-mail notifications -l true',
args: 'notifications',
watch: false,
time: true,
ignore_watch: ['[/\\]./', 'uploads'],
watch_delay: 10000,
cwd: process.cwd(),
log_type: 'json',
error_file: `./logs/notification-error.json`,
log_date_format: 'YYYY-MM-DD HH:mm Z',
exp_backoff_restart_delay: 1000,
max_memory_restart: '600M',
},
],
}