Skip to content
prod 352bb92
Browse

Phase 5 · Staging deploy

The first time the app runs on a real server. The default example calls this target staging, but Zaj-PROJECT.md is the source of truth: your non-production target may be staging-primary, qa, uat, client-demo, or another environment key. Everything is validated there before production is ever touched — provisioning, DNS, the first release, the web installer, schema parity, a proven rollback, and a named observation follow-up for slow failures a quick smoke test never sees.

Phase 5 — local app → validated staging

Phase 5 — local app → validated staging 1. Provision host (preflight + .env) → 2. DNS + SSL (env URL) → 3. First release (dep deploy) → 4. Installer (wizard + harden) → 5. Schedule + schema (cron + migrations) → 6. Rollback + monitor (gate + follow-up) → 7. Quality tracks (sync · audit · atlas) Provision host preflight + .env DNS + SSL env URL First release dep deploy Installer wizard + harden Schedule + schema cron + migrations Rollback + monitor gate + follow-up Quality tracks sync · audit · atlas
Pages 1–6 are the MUST path and carry the immediate phase gate (page 6). Pages 7–9 are SHOULD/optional quality tracks. Non-production only — production is a separate gate (Phase 12).
Phase 5 workTierOwner model
Deploy to the selected non-production target🔴 MUST🤖 agent-run with project state/env inputs
schedule:run cron🔴 MUST🤖 agent/API when possible; 👤 panel fallback
Migration verification🔴 MUST🤖 agent-run
ServerSync capture🟡 SHOULD🤖 agent-run after first deploy
Deep codebase audit🟡 SHOULD🤖 agent-run
Atlas Cloud🔵 OPTIONALN/A unless licensed/adopted
Post-deploy monitoring (24–48h)🔴 MUST🤖 immediate auth/page sweeps + temporary health check; 👤 password/account/email/payment moments tracked

One hard-won lesson gates the very first step:

MUST — pages 1–6 (the gate lives on page 6):

Two ways to run this: Whole Phase → click the button; one Part → open the Part document and click Run this Part. Skill users can run /zaj-laravel-codecanyon phase 5 instead.

SHOULD / OPTIONAL — pages 7–9 (quality tracks, after the gate):

A staging deploy that survived a proven rollback, immediate monitor sweep, and tracked observation follow-up is the evidence base for Phase 6 · SuperAdmin setup and everything after. The passive 24–48h clock does not block Phase 6 when the immediate gate is green and the human-only journeys are tracked in Zaj-BACKLOG.md. If you need to revisit how the release pipeline itself is wired, that lives back in Phase 4 · Deploy pipeline.

Configure branding, SMTP, payments, plans, and admin settings on the selected non-production target first (Phase 6). Then pick how many phases to complete there before the production cutover — the choice is a speed-vs-hardening trade-off, not a one-way door:

PathWhen to useFlow
A — Fast launchNeed production ASAPPhases 1–6 on the selected non-production target → deploy to production → Phases 7–10 on that target → redeploy
B — Hardened launchWant everything right firstPhases 1–10 all on the selected non-production target → deploy to production → verification
C — IterativePrefer gradual refinementPhases 1–6 → deploy to production → Phases 7–10 on the selected non-production target, redeploy after each batch

Production deploy is its own gate: Phase 12 · Production. No production access happens in Phase 5.