-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
51 lines (47 loc) · 1.06 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
51
/*
* PM2 Config
*/
module.exports = {
apps: [
{
/*
* General
*/
name: 'joonsang-web',
script: '/home/jpark/joonsang-web-interface/server/index.js',
cmd: '/home/jpark/joonsang-web-interface',
interpreter: 'node',
interpreterArgs: '--max-old-space-size=128',
/*
* Advanced features
*/
instances: '2',
exec_mode: 'cluster',
watch: false,
max_memory_restart: '160M',
/*
* Log files
*/
log_date_format: 'YYYY-MM-DD HH:mm:ss.SSS Z',
error_file: '/home/jpark/logs/joonsang-web/joonsang-web-err.log',
out_file: '/home/jpark/logs/joonsang-web/joonsang-web-out.log',
merge_logs: true,
pid_file: '/home/jpark/joonsang-web.pid',
/*
* Control flow
*/
min_uptime: 3000,
listen_timeout: 5000,
kill_timeout: 5000,
max_restarts: 10,
restart_delay: 5000,
autorestart: true,
/*
* Environment settings
*/
env: {
NODE_ENV: 'production'
}
}
]
}