-
Notifications
You must be signed in to change notification settings - Fork 2
/
ecosystem.config.js
38 lines (38 loc) · 1.03 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
module.exports = {
apps: [
{
name: 'waterbus.sfu.ws.01',
script: 'dist/main.js',
instances: 1, // can set is "max" for using max of processors
autorestart: true,
watch: false,
max_memory_restart: '2G',
exec_mode: 'fork',
env: {
NODE_ENV: 'development',
},
error_file: 'logs/error.log',
out_file: 'logs/out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss',
kill_timeout: 30000,
},
// {
// name: 'waterbus.sfu.ws.02',
// script: 'dist/src/main.js',
// instances: 1, // can set is "max" for using max of processors
// autorestart: true,
// watch: false,
// max_memory_restart: '2G',
// exec_mode: 'fork',
// env: {
// NODE_ENV: 'development',
// PORT: 5986,
// WEBSOCKET_GRPC_ADDRESS: '0.0.0.0:50057',
// },
// error_file: 'logs/error.log',
// out_file: 'logs/out.log',
// log_date_format: 'YYYY-MM-DD HH:mm:ss',
// kill_timeout: 30000,
// },
],
};