fix: add 30s startup delay before first webmention poll
The poller fired immediately after indiekit was backgrounded, before the HTTP server finished initializing — causing curl error 52 (empty reply). A 30s initial sleep gives indiekit time to become ready. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -67,6 +67,7 @@ WEBMENTION_ORIGIN="${PUBLICATION_URL:-${SITE_URL:-}}"
|
||||
|
||||
(
|
||||
echo "[webmention] Starting auto-send polling every ${WEBMENTION_POLL_INTERVAL}s (${WEBMENTION_ENDPOINT})"
|
||||
sleep 30 # Wait for indiekit to fully initialize before first poll
|
||||
while true; do
|
||||
TOKEN="$(
|
||||
WEBMENTION_ORIGIN="$WEBMENTION_ORIGIN" WEBMENTION_SECRET="$SECRET" \
|
||||
|
||||
Reference in New Issue
Block a user