fix(deploy): add --profile to blue-app log dump

docker compose requires --profile to access profiled services even for
the logs command. Without it, blue-app logs were empty in the failure
dump, hiding the actual crash reason.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-22 14:12:34 +01:00
parent 13c264ca75
commit e88c514376

View File

@@ -43,7 +43,7 @@ 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 — dumping logs" echo "!!! Health check failed — dumping logs"
echo "--- ${TARGET}-app logs ---" echo "--- ${TARGET}-app logs ---"
$COMPOSE logs --tail=60 "${TARGET}-app" 2>&1 || true $COMPOSE --profile "$TARGET" logs --tail=60 "${TARGET}-app" 2>&1 || true
echo "--- router logs ---" echo "--- router logs ---"
$COMPOSE logs --tail=10 router 2>&1 || true $COMPOSE logs --tail=10 router 2>&1 || true
echo "--- litestream logs ---" echo "--- litestream logs ---"