From a955fad8918e377d82bf7c62a5b399d735335bd1 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 9 Mar 2026 22:49:35 -0400 Subject: [PATCH] docs: add deployment optimization tasks to TODO list --- documentation/TODO__Agents.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/documentation/TODO__Agents.md b/documentation/TODO__Agents.md index 310a022a..8bf49aee 100644 --- a/documentation/TODO__Agents.md +++ b/documentation/TODO__Agents.md @@ -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.