-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathecosystem.config.cjs
More file actions
29 lines (28 loc) 路 723 Bytes
/
Copy pathecosystem.config.cjs
File metadata and controls
29 lines (28 loc) 路 723 Bytes
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
const { join } = require('path');
const { homedir } = require('os');
module.exports = {
apps: [
{
name: 'engram',
script: join(__dirname, 'bin', 'engram.js'),
args: 'start',
cwd: __dirname,
interpreter: 'node',
instances: 1,
exec_mode: 'fork',
autorestart: true,
watch: false,
max_memory_restart: '500M',
env: {
NODE_ENV: 'production'
},
error_file: join(homedir(), '.engram', 'logs', 'pm2-error.log'),
out_file: join(homedir(), '.engram', 'logs', 'pm2-out.log'),
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true,
min_uptime: '10s',
max_restarts: 10,
restart_delay: 4000
}
]
};