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
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).
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.
1 · Pre-flight & provision hostConsume the Phase 4 handoff, pin Composer to the confirmed deploy PHP, preview the plan, prepare the selected branch/target, deploy tree, .user.ini limits, shared .env (APP_KEY empty).
2 · DNS + SSLCreate the non-production domain and confirm a valid TLS chain before deploying.
3 · First releaseAtomic deploy, APP_KEY + optimize:clear, the .env symlink BLOCKER, demo content, installer perms.
4 · Installer + hardenUnblock /install, run the wizard against the selected non-production DB, verify, then re-block + re-harden.
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:
Path
When to use
Flow
A — Fast launch
Need production ASAP
Phases 1–6 on the selected non-production target → deploy to production → Phases 7–10 on that target → redeploy
B — Hardened launch
Want everything right first
Phases 1–10 all on the selected non-production target → deploy to production → verification
C — Iterative
Prefer gradual refinement
Phases 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.