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:
@@ -43,7 +43,7 @@ echo "==> Starting $TARGET (waiting for health check)..."
|
||||
if ! $COMPOSE --profile "$TARGET" up -d --wait; then
|
||||
echo "!!! Health check failed — dumping 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 ---"
|
||||
$COMPOSE logs --tail=10 router 2>&1 || true
|
||||
echo "--- litestream logs ---"
|
||||
|
||||
Reference in New Issue
Block a user