Websites2 minutes to read

Recover a Git deployment after a failed readiness check

Diagnose a failed Git deployment, check the intended HTTPS readiness route, and recover the last verified code for a bot or web app.

Find the first phase that failed

Open Deploy → Recent deploys and record the requested commit and the last healthy Git revision. A checkout or dependency error should appear in Console before the app starts. For a candidate that does start, open the platform HTTPS address at a known route, or send a real event from the bot provider. The revision check tracks startup and can verify the configured HTTPS route for HTTP deployments.

For example, a small API may respond at /healthz while the root path returns HTTP 404. Compare both routes before changing the deployment. If /healthz is the intended health handler, open Git revisions → HTTPS readiness check, save /healthz, then use Deploy latest when the prior attempt and cooldown finish. An accepted route returns HTTP 2xx or 3xx.

Check an API’s intended readiness route
curl -i https://your-platform-hostname.example/healthz

Roll back the code and check the user-facing result

On a compatible linked deployment, if the candidate remains unhealthy and Deploy offers a verified rollback target, select Roll back Git code. Check the displayed commit, enter the deployment’s exact name and select Roll back and restart. Wait for the result in Deploy and match the active revision to the selected commit.

Repeat the request or bot command that originally failed. For a Discord dashboard, check both the browser flow and a real Discord interaction. For a webhook bot, send an update through its provider. Check the Git branch and prepare a fix or revert there before pushing again, since new pushes can queue another deployment. Bothosting Git recovery controls.

Check the stored data before an older version reads it

Before rolling back code that shipped a database migration, check whether the previous version can read the current schema. For instance, if a release renamed a required column, a successful process restart may still leave a route broken. Test that route with a representative record.

If data also needs recovery, choose a file backup or database recovery point based on when the bad writes occurred. Review any later writes before restoring. If there is no verified Git rollback target, revert the bad change in Git and deploy the resulting commit. A published static frontend uses its own release controls. Restore deployment files and roll back a static site release.