-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
30 lines (30 loc) · 956 Bytes
/
Copy pathecosystem.config.js
File metadata and controls
30 lines (30 loc) · 956 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
30
// PM2 process definitions for the AutoInvoice Business OS.
// Usage: pm2 start ecosystem.config.js && pm2 save
// Reboot persistence: run the `pm2 startup` one-liner once (needs sudo).
module.exports = {
apps: [
{
name: 'autoinvoice-backend',
cwd: __dirname + '/apps/backend',
script: 'dist/index.js',
env: { NODE_ENV: 'production' },
max_restarts: 10,
restart_delay: 3000,
out_file: process.env.HOME + '/autoinvoice-backend.log',
error_file: process.env.HOME + '/autoinvoice-backend.log',
time: true,
},
{
name: 'autoinvoice-web',
cwd: __dirname + '/apps/web',
script: 'node_modules/next/dist/bin/next',
args: 'start',
env: { NODE_ENV: 'production' },
max_restarts: 10,
restart_delay: 3000,
out_file: process.env.HOME + '/autoinvoice-web.log',
error_file: process.env.HOME + '/autoinvoice-web.log',
time: true,
},
],
};