fix deploy.sh stopping router during blue-green switch
docker compose --profile stop also stops non-profiled services (router, litestream), causing 502. Now explicitly names only slot services to stop. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -33,7 +33,7 @@ $COMPOSE --profile "$TARGET" run --rm "${TARGET}-app" \
|
|||||||
echo "==> Starting $TARGET (waiting for health check)..."
|
echo "==> Starting $TARGET (waiting for health check)..."
|
||||||
if ! $COMPOSE --profile "$TARGET" up -d --wait; then
|
if ! $COMPOSE --profile "$TARGET" up -d --wait; then
|
||||||
echo "!!! Health check failed — rolling back"
|
echo "!!! Health check failed — rolling back"
|
||||||
$COMPOSE --profile "$TARGET" stop
|
$COMPOSE stop "${TARGET}-app" "${TARGET}-worker" "${TARGET}-scheduler"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ $COMPOSE exec router nginx -s reload
|
|||||||
|
|
||||||
if [ "$CURRENT" != "none" ]; then
|
if [ "$CURRENT" != "none" ]; then
|
||||||
echo "==> Stopping $CURRENT..."
|
echo "==> Stopping $CURRENT..."
|
||||||
$COMPOSE --profile "$CURRENT" stop
|
$COMPOSE stop "${CURRENT}-app" "${CURRENT}-worker" "${CURRENT}-scheduler"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ── Record live slot ────────────────────────────────────────
|
# ── Record live slot ────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user