Add pm2 deployment config for accountbook
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'accountbook',
|
||||
cwd: '/opt/accountbook',
|
||||
script: 'npm',
|
||||
args: 'start',
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: '3500',
|
||||
},
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_restarts: 10,
|
||||
min_uptime: '10s',
|
||||
out_file: '/opt/accountbook/logs/accountbook.out.log',
|
||||
error_file: '/opt/accountbook/logs/accountbook.err.log',
|
||||
merge_logs: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user