Skip to content
prod e051e98
Browse

Phase 12 · Deploy to production

You are here: PlaybookPhase 12 · Deploy to production This phase is for you if: staging is verified and you’re ready to pull the production trigger — rollback stays one command away. Not this phase? Phase 5 = staging first · Phase 11 = pre-customer gates.

The final gate: take the staging-verified app live without losing anything if it goes wrong. Phase 12 is not a sequential step you grind through — it’s a trigger you pull when staging is verified and you’re ready. Every move here keeps a rollback one command away.

Phase 12 — production cutover, rollback always ready

Phase 12 — production cutover, rollback always ready 1. Pre-flight (P0 · rotate + audit) → 2. DNS / TLS ready (prereq · domain + SSL) → 3. First prod release (P2 · deploy + install) → 4. Smoke test (P9 · verify live) → 5. Monitor + rollback-ready (24–48h) Pre-flight P0 · rotate + audit DNS / TLS ready prereq · domain + SSL First prod release P2 · deploy + install Smoke test P9 · verify live Monitor + rollback-ready 24–48h
Pull the trigger when staging mirrors production. Each stage gates the next; the last stage is steady-state, not a finish line.

Phase 12 can fire on three paths depending on your risk tolerance. Pick one — don’t drift between them.

PathWhen to useFlow
Fast launchNeed production ASAPCore phases on staging → go live → harden + polish on staging → redeploy
Hardened launchWant everything right firstAll phases on staging → go live → final verification
IterativePrefer gradual refinementCore phases → go live → polish on staging, redeploy after each batch

Confirm every item before any deploy step runs:

  • Staging deploy complete — app live on staging, schema verified, 24–48h monitoring passed.
  • Superadmin setup done on staging — branding, SMTP, payments, and legal pages all configured.
  • Server setup verified on the production account (it may be a different host from staging — server setup runs on each).
  • Production database created (empty) in the hosting panel.
  • Production .env template prepared in your secrets manager / project vault — placeholders only, never committed.
  • Production TLS certificate ready (origin cert or Let’s Encrypt).
  • Rollback plan reviewed, emergency contacts documented, and stakeholders notified of the deploy window.

How you seed the production database decides how much work you repeat.

OptionProsCons
Fresh installerClean DB, no URL/encryption issuesRedo all superadmin config (1–2h)
Copy staging DBSkip admin config (~10 min)Must find/replace staging→production URLs; watch app-key-encrypted columns
HybridBest of bothFresh install, then selectively import settings/plans; needs SQL comfort

For a first production deploy, Fresh installer is safest — it avoids encryption-key mismatches and URL find/replace errors. Use Copy staging DB once the process is routine.

Start with Pre-flight — never skip it.