Website 1.4.0: nightly database backups and background jobs

As Accounts and Cross Events: a gzipped pg_dump every night (02:20) into
backend/backups/, the same website-*.sql.gz files crosscode makes before
updates, with Admin -> Backups (back up now, download, how many to keep).
The heartbeat, event feed and YouTube move from plain timers onto pg-boss
with the backup, and Admin -> Background jobs switches each on or off,
changes its schedule or runs it now. The heartbeat now reports the newest
backup (before: always none, so the Hub warned) and the real job state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 09:47:30 +02:00
co-authored by Claude Opus 5.5
parent 8e52bd2d33
commit a3ac3da5a5
20 changed files with 1050 additions and 52 deletions
+4 -2
View File
@@ -360,15 +360,17 @@
},
"apps/website/backend": {
"name": "@crosscode/website-backend",
"version": "1.3.0",
"version": "1.4.0",
"hasInstallScript": true,
"dependencies": {
"@crosscode/auth-client": "*",
"@crosscode/contracts": "*",
"@prisma/adapter-pg": "^7.10.1",
"@prisma/client": "^7.10.1",
"cron-parser": "^5.10.2",
"dotenv": "^16.3.1",
"express": "^5.3.0",
"pg-boss": "^11.1.2",
"sharp": "^0.35.5",
"zod": "^4.6.7"
},
@@ -387,7 +389,7 @@
},
"apps/website/frontend": {
"name": "@crosscode/website-frontend",
"version": "1.3.0",
"version": "1.4.0",
"dependencies": {
"@crosscode/contracts": "*",
"@crosscode/seo": "*",