-
Notifications
You must be signed in to change notification settings - Fork 1
/
process.config.js
45 lines (45 loc) · 1010 Bytes
/
process.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
module.exports = { // pm2 start process.config.js
apps: [
{
name: 'gateway',
script: './server/gateway.js',
ignore_watch : ["node_modules"],
watch: true,
},
{
name: 'basicgram',
script: './server/basicgram.js',
ignore_watch : ["node_modules"],
watch: true,
exec_mode: 'cluster',
instances: 2,
},
{
name: 'websocket',
script: './server/websocket-server.js',
ignore_watch : ["node_modules"],
watch: true,
exec_mode: 'cluster',
instances: 2,
},
{
name: 'auth-server',
script: './server/auth-server.js',
ignore_watch : ["node_modules"],
watch: true,
},
{
name: 'frontend',
script: './server/frontend.js',
ignore_watch : ["node_modules"],
watch: true,
exec_mode: 'cluster',
},
{
name: 'user-server',
script: './server/user-server.js',
ignore_watch : ["node_modules"],
watch: true,
}
],
};