From 9befbffd94a5047582fd038347474d4706a0eeb3 Mon Sep 17 00:00:00 2001 From: jay Date: Tue, 9 Jun 2026 19:39:15 -0400 Subject: [PATCH] Deploy: smoke-check the digest masthead asset (logo-email.png) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per Codex — guard against the static logo silently going missing (which would break the newsletter masthead). Non-fatal curl check after Caddy reload. Co-Authored-By: Claude Opus 4.8 (1M context) --- deploy/publish.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/publish.sh b/deploy/publish.sh index 7dd5f44..cadd5d6 100755 --- a/deploy/publish.sh +++ b/deploy/publish.sh @@ -19,4 +19,11 @@ docker compose -f "$api_compose" up -d --build echo "→ reloading Caddy" docker exec caddy caddy reload --config /etc/caddy/Caddyfile --adapter caddyfile +# Non-fatal smoke check: the digest masthead points at this static asset, so a +# missing/unserved logo-email.png would silently break the newsletter header. +echo "→ smoke check" +curl -fsS -o /dev/null -w ' logo-email.png → %{http_code} %{content_type}\n' \ + https://upbeatbytes.com/logo-email.png \ + || echo " ⚠ logo-email.png is not being served — the digest masthead would break!" + echo "✓ Published Upbeat Bytes → https://upbeatbytes.com"