From abc2f1b78d780c83d494bd2886db25967d130cca Mon Sep 17 00:00:00 2001 From: yiekheng Date: Sat, 2 May 2026 18:01:41 +0800 Subject: [PATCH] fix(scripts): dev.sh down --remove-orphans (cleans up prod-test leftovers) --- scripts/dev.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/dev.sh b/scripts/dev.sh index 88cab5f..0ef7eca 100755 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -51,10 +51,14 @@ case "${1:-}" in "${COMPOSE[@]}" ps ;; down) - "${COMPOSE[@]}" down + # --remove-orphans cleans up containers from manual `docker compose + # -f docker-compose.yml ...` invocations (e.g., the prod-mode gunicorn + # smoke test) that landed in the same compose project but aren't + # services in the override. + "${COMPOSE[@]}" down --remove-orphans ;; reset-db) - "${COMPOSE[@]}" down --volumes + "${COMPOSE[@]}" down --volumes --remove-orphans "${COMPOSE[@]}" up -d --build mysql api-server web-view ;; logs)