Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history

DEPLOY_CHECKLIST.md

Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.

DEPLOY_CHECKLIST.mdBlame109 lines · 3 contributors
04f6b7fClaude1# Deploy checklist
2
fe8ae12CC LABS App3Scannable go-live runbook for the metal-box deploy at **Hetzner
4Gluecron-1, `178.104.208.252`**. For the bundled compose + Caddy setup,
5see `DEPLOY_METAL.md`. For the (deferred) Fly.io path, see `DEPLOY.md`.
04f6b7fClaude6
7## Pre-deploy
8
fe8ae12CC LABS App9- [ ] DNS confirmed: `gluecron.com` + `www.gluecron.com` A-records point
10 at `178.104.208.252` (NOT the obsolete `45.76.171.37`), proxy
11 status "DNS only" in Cloudflare
04f6b7fClaude12- [ ] `DATABASE_URL` set to a live Neon PostgreSQL connection string (hard-required)
6d2b36eDictation App13- [ ] `.env` populated on the box from `.env.example`; optional keys
14 (`ANTHROPIC_API_KEY`, `RESEND_API_KEY`, `GATETEST_API_KEY`, `VOYAGE_API_KEY`)
15 set or consciously skipped
16- [ ] `ERROR_WEBHOOK_URL` **or** `SENTRY_DSN` set (without this, errors log to stderr only)
04f6b7fClaude17- [ ] `AUTOPILOT_DISABLED` decision made (default: enabled)
18- [ ] `DEMO_SEED_ON_BOOT` decision made (default: off)
6d2b36eDictation App19- [ ] `APP_BASE_URL=https://gluecron.com`
20- [ ] Local: `bun run preflight` green
21- [ ] Local: `bun test` clean on the deploy commit
04f6b7fClaude22- [ ] `CHANGELOG.md` has an `[Unreleased]` entry for this deploy
23
fe8ae12CC LABS App24## Deploy (Hetzner Gluecron-1, `178.104.208.252`)
04f6b7fClaude25
6d2b36eDictation App26```sh
fe8ae12CC LABS App27ssh root@178.104.208.252
28command -v docker >/dev/null || curl -fsSL https://get.docker.com | sh
6d2b36eDictation App29git clone https://github.com/ccantynz-alt/Gluecron.com.git /opt/gluecron # first time
30cd /opt/gluecron && git pull
fe8ae12CC LABS App31cp .env.example .env && nano .env # first time only
6d2b36eDictation App32docker compose up -d --build
33docker compose logs -f caddy # watch for cert issuance
34```
35
36- [ ] Repo cloned / updated at `/opt/gluecron`
37- [ ] `.env` present and populated
38- [ ] `docker compose up -d --build` exits clean
39- [ ] Caddy logs show `certificate obtained successfully` for
40 `gluecron.com` AND `www.gluecron.com`
41- [ ] `docker compose ps` shows both services `Up (healthy)`
42
43## First-run DB migration
44
45```sh
46docker compose exec gluecron bun run db:migrate
47```
48
49- [ ] Exits with code 0
50- [ ] No "column already exists" / "missing relation" warnings
04f6b7fClaude51
52## Post-deploy smoke
53
6d2b36eDictation App54Run the one-command verifier:
55
56```sh
57bash scripts/verify-deploy.sh https://gluecron.com
58```
59
60Or tick manually:
61
62- [ ] `GET https://gluecron.com/healthz` → 200 `ok`
63- [ ] `GET https://gluecron.com/readyz` → 200 (DB + git reachable)
64- [ ] `GET https://gluecron.com/status` renders the HTML status page
65- [ ] `GET https://gluecron.com/status.svg` returns a shields-style badge
66- [ ] `GET https://gluecron.com/metrics` returns Prometheus-format metrics
67- [ ] `GET https://www.gluecron.com/healthz` → 200 (no cert error)
04f6b7fClaude68- [ ] Register a new user via `/register`
6d2b36eDictation App69- [ ] First user auto-promoted to site admin (`/admin` loads for that account)
04f6b7fClaude70- [ ] Create a repo via `/new`
6d2b36eDictation App71- [ ] `git clone` over HTTPS succeeds against the new repo
04f6b7fClaude72- [ ] `git push` succeeds; post-receive pipeline runs (GateTest callback + webhooks)
73- [ ] AI review path exercised if `ANTHROPIC_API_KEY` is set
6d2b36eDictation App74- [ ] Sentry / error-webhook sink receives a forced test error
04f6b7fClaude75
76## First-day operations
77
6d2b36eDictation App78- [ ] Admin bootstrap: oldest row in `users` is the intended admin —
79 register that account **first** (see `src/routes/admin.ts` bootstrap rule)
04f6b7fClaude80- [ ] Site banner / motd configured in `/admin` if needed for launch
81- [ ] Billing plans seeded (free/pro/team/enterprise) — verify in `/admin`
6d2b36eDictation App82- [ ] Autopilot ticker heartbeat visible in logs (unless `AUTOPILOT_DISABLED=1`)
04f6b7fClaude83- [ ] `docs/LAUNCH_ANNOUNCEMENT.md` queued for Show HN / social
6d2b36eDictation App84- [ ] Point Alertmanager at `infra/alerts/gluecron.rules.yml` (see `infra/alerts/README.md`)
85- [ ] Dated entry added to `CHANGELOG.md`; tag a release
04f6b7fClaude86- [ ] Monitor `/metrics`, `/healthz`, and the error sink for the first hour
fe8ae12CC LABS App87- [ ] Decommission the obsolete Vultr box at `45.76.171.37` via the Vultr dashboard (only after DNS has fully propagated)
6d2b36eDictation App88
89## Redeploy
90
91```sh
fe8ae12CC LABS App92ssh root@178.104.208.252
6d2b36eDictation App93cd /opt/gluecron && git pull && docker compose up -d --build
94docker compose exec gluecron bun run db:migrate # if migrations changed
95bash scripts/verify-deploy.sh https://gluecron.com
96```
97
98## Rollback
99
100```sh
fe8ae12CC LABS App101ssh root@178.104.208.252
6d2b36eDictation App102cd /opt/gluecron
103git log --oneline -10 # find last known-good sha
104git checkout <prev-sha>
105docker compose up -d --build
106```
107
fe8ae12CC LABS App108DNS is unchanged on rollback, so the failover is ~60s of rebuild time
109with no Cloudflare/registrar changes required.