Deployment Guide
Use this checklist for controlled deployments.
Pre-deployment
Section titled “Pre-deployment”Run quality gates from the repository root:
bun run lintbun run stylelintbun run formatbun run typecheckbun run testbun run buildValidate documentation:
bun run docs:checkbun run docs:buildDatabase preparation
Section titled “Database preparation”- Confirm target environment:
sqlite,d1, ord1-local - Apply migrations before deploying code:
Terminal window bun run aw db migrate --target <environment> - Verify secrets and API keys are set in the target environment
Rollout sequence
Section titled “Rollout sequence”- Deploy to staging
- Run smoke tests:
- Login and signup
- Dashboard loads
- Create a transaction
- View budget updates
- Deploy to production
- Verify health endpoints and key pages load
Post-deployment verification
Section titled “Post-deployment verification”Monitor for 30-60 minutes:
- Check error rates in logs
- Verify background jobs run
- Test email and MCP integrations
- Document the release with owner and rollback steps
Rollback triggers
Section titled “Rollback triggers”Rollback immediately if:
- Login/signup failure rate increases
- Critical API endpoints return 5xx
- Data integrity checks fail
- Dashboard or transaction write paths break
See Commands Reference for exact syntax.