fix: invoke Caddy adapter correctly in bootstrap

This commit is contained in:
ik
2026-09-11 07:48:05 +07:00
parent 0b7bbc78a6
commit 6664f24f20
+1 -1
View File
@@ -29,7 +29,7 @@ curl -fsS -D - -o /dev/null "http://127.0.0.1:$BOOTSTRAP_API_PORT/health" | grep
# A10: Validate Caddy configuration without running the proxy # A10: Validate Caddy configuration without running the proxy
echo "Validating Caddy configuration..." echo "Validating Caddy configuration..."
docker compose --env-file .env.production.example -f compose.production.yaml -f deploy/compose.bootstrap.yaml run --rm --no-deps --entrypoint "caddy adapt --config /etc/caddy/Caddyfile --pretty" proxy >/dev/null 2>&1 || { docker compose --env-file .env.production.example -f compose.production.yaml -f deploy/compose.bootstrap.yaml run --rm --no-deps --entrypoint caddy proxy adapt --config /etc/caddy/Caddyfile --pretty >/dev/null 2>&1 || {
echo "ERROR: Caddy configuration is invalid" >&2 echo "ERROR: Caddy configuration is invalid" >&2
exit 1 exit 1
} }