Files
PAGIVA/ecosystem.config.cjs
chaloemphong 9d32552457 Initial commit: page-manager Next.js app with Coolify deploy support
Replace Vercel-specific infra (Cron, Blob) with self-hosted equivalents
for deployment to Coolify: in-container cron scheduler
(scripts/cron-runner.mjs) and disk-based upload storage served via
/api/uploads/[...path]. Add Dockerfile, .dockerignore, and /api/health
for container health checks.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-22 11:52:17 +07:00

18 lines
493 B
JavaScript

// PM2 process file for background workers. The web app itself runs on Vercel / `next start`.
// npm run worker:start → pm2 start ecosystem.config.cjs
// npm run worker:logs → pm2 logs page-analysis-worker
module.exports = {
apps: [
{
name: "page-analysis-worker",
script: "scripts/analysis-worker.mjs",
cwd: __dirname,
autorestart: true,
max_restarts: 10,
restart_delay: 5000,
kill_timeout: 15000,
time: true,
},
],
};