telegram-media-bot/ecosystem.config.cjs
Martin Porwoll 412175030a feat: add entry point with graceful shutdown and PM2 config
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 09:26:20 +00:00

17 lines
347 B
JavaScript

module.exports = {
apps: [{
name: 'telegram-media-bot',
script: './dist/index.js',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '256M',
env: {
NODE_ENV: 'production',
},
error_file: './logs/error.log',
out_file: './logs/out.log',
merge_logs: true,
time: true,
}],
};