diff --git a/deploy.sh b/deploy.sh index f41de0d..63b7fc4 100755 --- a/deploy.sh +++ b/deploy.sh @@ -33,7 +33,7 @@ $COMPOSE --profile "$TARGET" run --rm "${TARGET}-app" \ echo "==> Starting $TARGET (waiting for health check)..." if ! $COMPOSE --profile "$TARGET" up -d --wait; then echo "!!! Health check failed — rolling back" - $COMPOSE --profile "$TARGET" stop + $COMPOSE stop "${TARGET}-app" "${TARGET}-worker" "${TARGET}-scheduler" exit 1 fi @@ -67,7 +67,7 @@ $COMPOSE exec router nginx -s reload if [ "$CURRENT" != "none" ]; then echo "==> Stopping $CURRENT..." - $COMPOSE --profile "$CURRENT" stop + $COMPOSE stop "${CURRENT}-app" "${CURRENT}-worker" "${CURRENT}-scheduler" fi # ── Record live slot ────────────────────────────────────────