fix(scripts): dev.sh down --remove-orphans (cleans up prod-test leftovers)

This commit is contained in:
yiekheng 2026-05-02 18:01:41 +08:00
parent e68e64065a
commit abc2f1b78d

View File

@ -51,10 +51,14 @@ case "${1:-}" in
"${COMPOSE[@]}" ps "${COMPOSE[@]}" ps
;; ;;
down) 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) reset-db)
"${COMPOSE[@]}" down --volumes "${COMPOSE[@]}" down --volumes --remove-orphans
"${COMPOSE[@]}" up -d --build mysql api-server web-view "${COMPOSE[@]}" up -d --build mysql api-server web-view
;; ;;
logs) logs)