Release 2.0.0: Cross Code Hub

Docs: protocol v2 (hub-protocol.md §6), README, deployment.md
(Upgrading to 2.0), plan marked done, CHANGELOG 2.0.0; versions 2.0.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 09:07:16 +02:00
co-authored by Claude Opus 5.5
parent 8a0ed7f155
commit 3579d7abe6
9 changed files with 123 additions and 31 deletions
+25
View File
@@ -368,6 +368,31 @@ From then on the checkout is detached, so use the script rather than `git pull`.
Installs keep working while the Hub is briefly down (licences are valid offline for 30 days).
### Upgrading to 2.0 (Cross Code Hub)
2.0 changes the database a lot (products, releases per product, billing per church, the church's
address, AI per church). The migrations carry everything over, but one thing has to be right first.
1. **Check first** (changes nothing): from the new checkout, before deploying,
```bash
git fetch --tags && git checkout v2.0.0 -- backend/scripts/check-hub2.js
(cd backend && node scripts/check-hub2.js)
git checkout -- backend/scripts/check-hub2.js 2>/dev/null || rm -f backend/scripts/check-hub2.js
```
It lists any church with two licences that aren't revoked. 2.0 allows one licence per product
per church, so the migration would stop on them (naming them, and the deploy rolls back). Revoke
the one that isn't used, then deploy.
2. **Deploy** as usual: `bash scripts/deploy.sh v2.0.0`. Cross Events installs on 2.1.x keep
working unchanged (protocol 1).
3. **After deploying**: each billed licence's schedule is now its church's (customer page →
Billing → Billing schedule); check one or two churches' **Next invoice**. Releases sync from the
default sources (Releases page): Cross Events from `crosscode-platform` (`events@…`) and from
`hope-events` (`v…`) as before.
4. **The new address `hub.crosscode.co.za`** (optional, any time): add it to DNS and frp the same
way as `events-hub.crosscode.co.za` (steps 2–3), add it as an alias of the site in FASTPANEL with
its certificate (step 5), add it to `FRONTEND_URL` only if you move the dashboard to it, and keep
`events-hub.crosscode.co.za` working: installs point at it (`HUB_URL`) until they're updated.
---
## Troubleshooting