forked from alcorexchange/alcor-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js.orig
62 lines (60 loc) · 1.37 KB
/
ecosystem.config.js.orig
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
require('dotenv').config()
module.exports = {
apps: [
{
name: 'Alcor-nuxt-ui',
exec_mode: 'cluster',
instances: 2,
script: './node_modules/nuxt/bin/nuxt.js',
args: 'start',
//wait_ready: true,
env: {
NODE_ENV: 'production',
NUXT_PORT: 7000,
NUXT_HOST: '0.0.0.0'
}
},
{
name: 'Alcor-api-server',
script: './lib/server/services/ApiService/index.js',
exec_mode: 'cluster',
restart_delay: 10000,
instances: 2,
kill_timeout: 3000,
//wait_ready: true,
env: {
NODE_ENV: 'production',
PORT: 7001
}
},
{
name: 'Alcor-ws-server',
script: './lib/server/services/socketService/index.js',
exec_mode: 'cluster',
instances: 4,
kill_timeout: 10000,
restart_delay: 10000,
//wait_ready: true,
env: {
NODE_ENV: 'production',
PORT: 7002,
PM2_PORT: 7002
}
},
{
name: 'Alcor-updater',
script: './lib/server/services/UpdaterService/index.js',
node_args: '-r esm',
restart_delay: 10000,
//wait_ready: true
},
{
name: 'Alcor-orderbook-service',
script: './lib/server/services/orderbookService/index.js',
node_args: '-r esm',
kill_timeout: 10000,
restart_delay: 10000,
//wait_ready: true
}
]
}