← Назадmodule.exports = {
apps: [{
name: 'weather-bot',
script: 'bot.py',
interpreter: '/home/app/polymarket-weather-bot/venv/bin/python',
args: '',
cwd: '/home/app/polymarket-weather-bot',
env: {
PORT: 3201,
LOG_LEVEL: 'INFO',
MAX_OPEN_POSITIONS: 100, // DRY_RUN: no limit, accumulate stats faster
// Rest loaded from .env (DRY_RUN, BET_SIZE, BANKROLL, etc.)
},
max_restarts: 10,
restart_delay: 5000,
exp_backoff_restart_delay: 1000, // exponential backoff: 1s, 2s, 4s, ...
max_memory_restart: '300M', // auto-restart if memory exceeds 300MB
autorestart: true,
watch: false, // don't watch files (manual restarts only)
merge_logs: true, // merge stdout/stderr into single log
log_date_format: 'YYYY-MM-DD HH:mm:ss',
}]
};