build: add pm2 ecosystem config.

This commit is contained in:
Ivan Li 2021-05-02 21:11:34 +08:00
parent 9120332051
commit 7700100a7d

14
ecosystem.config.js Normal file
View File

@ -0,0 +1,14 @@
module.exports = {
apps: [
{
name: 'fennec-be',
script: 'npm',
args: 'run start:prod',
watch: false,
ignore_watch: ['node_modules'],
log_date_format: 'MM-DD HH:mm:ss.SSS Z',
env: {},
max_restarts: 5,
},
],
};