← back to Flockedwallpaper
ecosystem.config.js
26 lines
module.exports = {
apps: [{
name: 'flockedwallpaper',
script: './server.js',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
PORT: 3200,
NODE_ENV: 'production'
},
error_file: './logs/err.log',
out_file: './logs/out.log',
log_file: './logs/combined.log',
time: true,
// Restart policy
exp_backoff_restart_delay: 100,
restart_delay: 1000,
max_restarts: Infinity,
min_uptime: '5s',
cron_restart: '0 4 * * *',
kill_timeout: 5000
}]
};