Production operations
This page summarizes the operational surface. The authoritative runbook is PRODUCTION-OPERATIONS.md, which covers recovery targets, backups, rollback, retention, metrics, and incident response in full.
Deployment sequence
- Build immutable web, server, and worker images from the same commit.
- Configure
PLATFORM_ADMIN_EMAILS, a deliverableMAIL_PROVIDER, and a verifiedMAIL_FROM. - Configure MinIO credentials and
MINIO_PUBLIC_BASE_URLwhen object storage is enabled. - Run the server image's
migratortarget once before rolling out application replicas. - Deploy web, server, and worker with the same validated environment and release identifier.
- Require PostgreSQL and Redis health before accepting traffic.
- Verify
/server/health/ready,/_api/health/live, and the worker readiness endpoint.
docker-compose.coolify.yaml provides a hardened Coolify-oriented baseline.
Testing and quality gates
The repository uses Vitest for package and integration tests and Playwright for browser flows. CI also enforces formatting, lint and type safety, workspace builds, package boundaries, coverage, dependency and license policy, secret scanning, CodeQL, container scanning, Compose validation, a capacity smoke test, and a PostgreSQL backup/restore drill.
pnpm run test:unit:run
pnpm --filter @saasweave/api --filter @saasweave/db run test:integration
pnpm --filter @saasweave/web run test:e2e:pw
pnpm run coverage:gateIntegration and browser suites require PostgreSQL and Redis. The CI workflow is the authoritative reference for service configuration.
Observability
Structured logs, Prometheus metrics behind a bearer token, health and readiness probes, retention jobs, and a backup verification tool ship with the starter. Metrics stay off until METRICS_ENABLED and METRICS_BEARER_TOKEN are set.