Initial setup, everything broken
This commit is contained in:
35
inventory-server/ecosystem.config.js
Normal file
35
inventory-server/ecosystem.config.js
Normal file
@@ -0,0 +1,35 @@
|
||||
module.exports = {
|
||||
apps: [{
|
||||
name: 'inventory-server',
|
||||
script: 'src/server.js',
|
||||
instances: 1,
|
||||
exec_mode: 'fork',
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: '1G',
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: 3010
|
||||
},
|
||||
log_rotate: true,
|
||||
max_size: '10M',
|
||||
retain: '10',
|
||||
log_date_format: 'YYYY-MM-DD HH:mm:ss',
|
||||
error_file: 'logs/pm2/err.log',
|
||||
out_file: 'logs/pm2/out.log',
|
||||
log_file: 'logs/pm2/combined.log',
|
||||
time: true,
|
||||
ignore_watch: [
|
||||
'node_modules',
|
||||
'logs',
|
||||
'.git',
|
||||
'*.log'
|
||||
],
|
||||
min_uptime: 5000,
|
||||
max_restarts: 5,
|
||||
restart_delay: 4000,
|
||||
listen_timeout: 50000,
|
||||
kill_timeout: 5000,
|
||||
node_args: '--max-old-space-size=1536'
|
||||
}]
|
||||
};
|
||||
Reference in New Issue
Block a user