Skip to main content

Deployment Runbook

Release topology

flowchart LR
P[Precheck] --> B[Build Artifact]
B --> M[Run Migration]
M --> D[Deploy App]
D --> Q[Start/Reload Queue Workers]
Q --> V[Post-deploy Verification]

Stage gates

GateMust passEvidence
G1 Prechecklockfiles reviewed, env parity confirmedchecklist + commit hash
G2 Buildartifact build successbuild log
G3 Schemamigration impact approvedmigration note + backup id
G4 Smokeauth/reservation/coupon path greensmoke evidence

Safe deployment sequence

  1. Announce deployment window.
  2. Confirm DB snapshot/backup.
  3. Deploy artifact.
  4. Run migrations.
  5. Warm cache/config.
  6. Reload queue workers.
  7. Run smoke tests.
  8. Record release evidence.

Rollback strategy

  1. Stop risky writes/feature gate if available.
  2. Revert artifact.
  3. Rollback migration only if tested-safe.
  4. Reconcile queue side-effects.
  5. Re-run smoke tests.

Docs-site deployment (Cloudflare Pages)

  • Project: example2-docs-customa
  • Build: npm run build
  • Deploy: wrangler pages deploy build --project-name example2-docs-customa
  • Expected domain: https://example2-doc.sudharmika.com