Files
inventory/inventory-server/ecosystem.config.js
2025-01-08 21:43:40 -05:00

35 lines
757 B
JavaScript
Executable File

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'
}]
};