mirror of https://gitgud.io/fatchan/jschan.git
merge-requests/208/head
parent
3e67a5df55
commit
e4009bc40e
1 changed files with 32 additions and 0 deletions
@ -0,0 +1,32 @@ |
|||||||
|
module.exports = { |
||||||
|
// Options reference: https://pm2.io/doc/en/runtime/reference/ecosystem-file/
|
||||||
|
apps : [{ |
||||||
|
name: 'chan', |
||||||
|
script: 'server.js', |
||||||
|
instances: 2, |
||||||
|
autorestart: true, |
||||||
|
watch: false, |
||||||
|
max_memory_restart: '1G', |
||||||
|
log_date_format: 'YYYY-MM-DD HH:mm:ss', |
||||||
|
env: { |
||||||
|
NODE_ENV: 'development' |
||||||
|
}, |
||||||
|
env_production: { |
||||||
|
NODE_ENV: 'production' |
||||||
|
} |
||||||
|
}, { |
||||||
|
name: 'deleter', |
||||||
|
script: 'deletescheduler.js', |
||||||
|
instances: 1, |
||||||
|
autorestart: true, |
||||||
|
watch: false, |
||||||
|
max_memory_restart: '1G', |
||||||
|
log_date_format: 'YYYY-MM-DD HH:mm:ss', |
||||||
|
env: { |
||||||
|
NODE_ENV: 'development' |
||||||
|
}, |
||||||
|
env_production: { |
||||||
|
NODE_ENV: 'production' |
||||||
|
} |
||||||
|
}] |
||||||
|
}; |
Loading…
Reference in new issue