@davoodmehraban89 / LifeMate / commits / 1f10a3b
Fork 0

LifeMate — Personal, Family & Learning Companion

docs: add staging and production deployment runbook

davoodmehraban89 committed Oct 5, 2026 at 17:12 UTC 1f10a3b7531d7402aa83a0d36228e2df772a4ea8
1 file changed +16
docs/operations/DEPLOYMENT.md new
+16
@@ -0,0 +1,16 @@
1 +# Deployment Runbook
2 +
3 +LifeMate uses staging before production. Normal engineering changes deploy to staging first and are verified there before any production decision.
4 +
5 +## Staging
6 +1. Confirm branch CI is green: security, backend, backup/restore and Flutter jobs.
7 +2. Apply migrations using the migration runner before the API change that depends on them.
8 +3. Deploy the API to the staging environment only.
9 +4. Verify `/live`, `/ready` and `/health`; `/ready` must report database ready.
10 +5. Review structured logs for startup, 5xx responses and unexpected 429 spikes without inspecting sensitive user content.
11 +6. Run the documented smoke flows for authentication, family, planner and Phase 4 guidance.
12 +
13 +## Production gate
14 +Production deployment requires explicit approval from the product owner for that deployment. Before approval, confirm the production checklist, current backup, rollback target, environment variables and release version. Minor-sensitive external AI and voice integrations remain disabled until their separate safety/privacy/legal gates are approved.
15 +
16 +Never place secrets in source control or deployment notes. Use the hosting platform's secret/environment management.