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>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// 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,
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user