forked from Inist-CNRS/lodex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
41 lines (41 loc) · 1.1 KB
/
ecosystem.config.js
File metadata and controls
41 lines (41 loc) · 1.1 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
module.exports = {
apps: [
{
name: 'lodex',
script: './src',
interpreter: 'node',
interpreter_args: '--import tsx --max-http-header-size=32768',
exec_mode: 'cluster',
cwd: './packages/api',
wait_ready: true,
listen_timeout: 10000,
env: {
NODE_CONFIG_DIR: '../../config',
},
err_file: '/dev/null',
out_file: '/dev/null',
},
{
name: 'worker',
script: './src',
cwd: './packages/workers',
interpreter: 'node',
interpreter_args: '--import tsx',
exec_mode: 'fork',
instances: 1,
env: {
NODE_CONFIG_DIR: '../../config',
},
err_file: '/dev/null',
out_file: '/dev/null',
},
{
name: 'redis',
script: 'redis-server',
exec_mode: 'fork',
instances: 1,
err_file: '/dev/null',
out_file: '/dev/null',
},
],
};