Files
Web_BLS_Heartbeat_Server/ecosystem.config.cjs

31 lines
678 B
JavaScript
Raw Permalink Normal View History

module.exports = {
apps: [{
name: 'bls-heartbeat',
script: 'dist/index.es.js',
instances: 1,
exec_mode: 'fork',
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
PORT: 3000
},
env_development: {
NODE_ENV: 'development',
PORT: 3000
},
error_file: './logs/error.log',
out_file: './logs/out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true,
time: true,
min_uptime: '10s',
max_restarts: 10,
restart_delay: 4000,
kill_timeout: 5000,
listen_timeout: 10000,
wait_ready: true,
shutdown_with_message: true
}]
};