Which health checks did my deployment script actually perform?
My deployment script checks three health URLs before printing that the deployment is verified. I need to read what those endpoints do before treating them as evidence about the whole site.
The June deployment revision probes application uptime, database connectivity, and GitHub reachability. Each is useful. Each has a narrower meaning than “everything works.”

Illustration: checking individual pieces leaves other work to inspect.
Follow the request into the check
| Endpoint | Implementation in this revision | What it doesn’t check |
|---|---|---|
/api/health | Returns a healthy status and HTTP 200. | Publishing, authentication, or frontend behavior. |
/api/health/db | Opens a database connection and executes SELECT 1. | Required tables, migrations, or an article write. |
/api/health/github | Requests GitHub’s public rate-limit endpoint. | Access to the private draft repository or permission to commit. |
The GitHub distinction is particularly easy to miss. That handler doesn’t send the configured content-repository credential. A healthy response shows that this outbound API request worked, not that the application can save a draft to its repository.
Similarly, the database can answer SELECT 1 while an application table is missing. The connectivity probe isn’t wrong; it is answering the question its code asks.
What curl accepts
The deployment loop uses:
curl -sS -f -m 15 "https://${DOMAIN}${endpoint}"
It discards successful response output and relies on curl’s exit status. The -f option makes HTTP error responses fail, but the script doesn’t parse the returned JSON or assert an exact 200 status.
A redirect or an unrelated successful HTML response could therefore satisfy a weaker check than the endpoint contract I intended. To establish that contract, a check would need to inspect the status and payload, not merely a successful curl exit.
The actual application handlers return 200 for their healthy cases and 503 for the dependency failures they catch. The script needs to reach those handlers for their meaning to apply.
Waiting has limits
The retry helper allows five attempts. Between failed attempts, it waits two, four, eight, and sixteen seconds. Each normal HTTP attempt has a fifteen-second timeout.
That gives startup a chance to finish without retrying forever. It doesn’t mean a permanent configuration failure will repair itself on the fifth attempt.
After the attempts fail, the script makes another request to collect the HTTP status and a short response-body excerpt, then tries to show the last thirty lines of the remote application’s error log. That diagnostic request is additional to the five probe attempts.
I still need a repository authorization check and a run through the actual reader and author workflows. Those are separate from the HTTP probes I added after calling an upload a deployment.