docs: add deployment optimization tasks to TODO list

This commit is contained in:
Scott Idem
2026-03-09 22:49:35 -04:00
parent 38b3164a0c
commit a955fad891

View File

@@ -34,6 +34,12 @@ the badge. Check if `documentation/MODULE__AE_Events_Leads.md` exists for full s
Key questions before starting: which routes, does the Electron app scan, what does the
lead record look like in the DB?
### [DevOps] Deployment Optimization (identified 2026-03-09)
- **Consolidate Service Architecture:** Simplify `ae_env_node_app/docker-compose.yml` by removing the manual Red/Green/Blue/etc. container definitions. Transition to a single service definition that can be scaled using Docker's native `--scale` flag if needed.
- **Unified Port Mapping:** Standardize on a single exposed port (e.g., 3000 or 3001) for the reverse proxy to point to, rather than managing 4+ separate ports for staging subdomains.
- **Auto-Healing & Healthchecks:** Implement a `/health` endpoint in the SvelteKit app (`src/routes/health/+server.ts`) and re-enable Docker/Nginx health-based routing to ensure zero-downtime deploys and auto-recovery.
- **Build Optimization:** Explore using a private container registry to separate the build phase from the deployment phase (Build once, deploy anywhere).
### [General]
- ~~**CRUD v2 Refactor:** Finalize retirement of `Element_ae_crud_v2.svelte` in favor of V3 Editor.~~ ✅ Done (2026-03-05) — all non-IDAA usages migrated; IDAA had zero usages.
- **Temp Cleanup:** Auto-removal of native `.tmp` files older than 24h.