← back to Animate Museum Posts
ecosystem.config.cjs
40 lines
/**
* PM2 Ecosystem Configuration
* Museum Art Animation Bot
*/
module.exports = {
apps: [
{
name: 'museum-art-bot',
script: 'src/index.js',
cwd: '/root/Projects/animate-museum-posts',
// Environment
env: {
NODE_ENV: 'production',
PORT: 7890
},
// Restart behavior
autorestart: true,
watch: false,
max_restarts: 10,
min_uptime: '10s',
restart_delay: 5000,
// Logging
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
error_file: '/root/Projects/animate-museum-posts/logs/pm2-error.log',
out_file: '/root/Projects/animate-museum-posts/logs/pm2-out.log',
merge_logs: true,
// Memory management
max_memory_restart: '500M',
// Graceful shutdown
kill_timeout: 5000
}
]
};