fix(start): add 5s delay after readiness check before first poll

The /status endpoint becomes available before all plugin routes are
fully mounted, causing a 502 on the first webmention-sender POST.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sven
2026-03-18 17:56:43 +01:00
parent ad1d82fc6f
commit 8f8c632e87

View File

@@ -77,7 +77,8 @@ WEBMENTION_ORIGIN="${PUBLICATION_URL:-${SITE_URL:-}}"
[ $_i -lt 60 ] || { echo "[webmention] Warning: indiekit not ready after 120s, proceeding anyway"; break; }
sleep 2
done
echo "[webmention] Indiekit ready"
echo "[webmention] Indiekit ready, waiting 5s for plugins to finish loading…"
sleep 5
while true; do
TOKEN="$(
WEBMENTION_ORIGIN="$WEBMENTION_ORIGIN" WEBMENTION_SECRET="$SECRET" \