Deployment Overview
RedeCasas uses a multi-layer deployment strategy:
- Static site — uploaded to Cloudflare R2 via incremental smart deploy
- Workers — deployed independently via Wrangler
- Database — D1 migrations applied via Wrangler
Deploy Targets
| Component | Target | Tool |
|---|---|---|
| Static HTML | Cloudflare R2 | rclone + smart deploy |
| Auth Worker | Cloudflare Workers | wrangler deploy |
| Billing Worker | Cloudflare Workers | wrangler deploy |
| Listings Worker | Cloudflare Workers | wrangler deploy |
| Chat Worker | Cloudflare Workers | wrangler deploy |
| D1 Schema | Cloudflare D1 | wrangler d1 execute |
Deploy Order
- Apply D1 migrations (if schema changed)
- Deploy Workers (auth → billing → listings → chat)
- Build site (
go run . build-pages) - Smart deploy to R2
- Verify with QA suite
Partial / Single-page Deploys
You do not need a full site build to update individual page groups. For example, auth pages and other single pages can be deployed explicitly:
cd site./deploy-single.shOr manually:
cd sitego run . build-page singlego run . smart-deploy --singleSee Single Page Deploys for the full workflow.