Commit Graph
2 Commits
Author SHA1 Message Date
anthonyandClaude Sonnet 5 771297cdf1 fix: rename pm2 worker and invoke tsx directly instead of npm
pm2 fork mode require()s the resolved script rather than spawning a
shell, and on o2switch `npm` resolves to CloudLinux's bash npm_wrapper,
so pm2 crashed instantly (SyntaxError) and restart-looped forever.
Point pm2 at tsx's real ESM entry (node_modules/tsx/dist/cli.mjs)
instead. Also renames the pm2 process to video-downloader-worker.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-11 16:21:25 +02:00
anthonyandClaude Sonnet 5 2b5f68752f feat: supervise worker with pm2 instead of cron PID-check
Passenger only manages the Next.js app process; the worker now gets
the same crash-recovery/auto-restart via pm2, replacing the cron-driven
PID-file restart hack. Updates README deployment steps accordingly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-11 14:49:49 +02:00