-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpm2.config.js
45 lines (43 loc) · 1016 Bytes
/
pm2.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
'use strict'
const path = require('path')
module.exports = {
apps: [
{
name: 'liiteri-16832',
script: 'lein',
interpreter: '/bin/sh',
args: ['with-profile', 'dev', 'run'],
cwd: __dirname,
log_file: 'liiteri.log',
pid_file: '.liiteri.pid',
combine_logs: true,
min_uptime: 30000,
max_restarts: 5,
restart_delay: 4000,
wait_ready: true,
watch: false,
exec_interpreter: 'none',
exec_mode: 'fork'
},
{
name: 'liiteri-background-16833',
script: 'lein',
interpreter: '/bin/sh',
args: ['with-profile', 'dev', 'run'],
cwd: __dirname,
log_file: 'liiteri-background.log',
pid_file: '.liiteri-background.pid',
combine_logs: true,
min_uptime: 30000,
max_restarts: 5,
restart_delay: 4000,
wait_ready: true,
watch: false,
exec_interpreter: 'none',
exec_mode: 'fork',
env: {
APP: 'liiteri-background',
}
}
]
}