Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Backups & monitoring
  3. Health checks

Health checks

HTTP checks per app, including after every deploy.

Backups & monitoring

Two different questions, two checks: is the site up? and did the release I just shipped break it? Combined with automatic rollback, a bad deploy can undo itself within seconds.

Health checks
$ cipi health set shop
$ cipi health check shop
CheckRunsAlerts
Periodic probeEvery 5 minutesAfter 3 consecutive failures (health_fail)
Post-deploy checkRight after every release, CLI and webhook alikeImmediately (deploy_health_fail)
bash
cipi health set myapp --url=https://myapp.com/up --expect=200
cipi health check myapp
cipi health list [--json]
cipi health unset myapp

Laravel 11+ serves /up when health: '/up' is set in bootstrap/app.php. The URL must belong to the app's own domains.

After every deploy#

Step 1 of 5Release live

The deploy swapped current to the new release: it's serving traffic now.

bash
cipi health set myapp --grace=15            # longer warm-up (max 120 s)
cipi health set myapp --no-postdeploy       # keep the 5-minute probe only
cipi health postdeploy myapp                # run the verification now

The success notification is sent after the verdict, so it never announces a release that returns errors. A failed verdict tells you where the check is configured and how to change it.

Automatic rollback#

bash
cipi health set myapp --rollback-on-unhealthy   # always, for this app
cipi deploy myapp --rollback-on-unhealthy       # this deploy only
Outcome reportedMeaning
RecoveredThe previous release answers healthy again
Rolled back, still unhealthyThe cause probably isn't the code (database, external service)
Rollback failedThe bad release is still live: act now
Nothing to roll back toFirst release

Off by default on purpose: migrations are not undone. Enable it for apps whose migrations are backwards-compatible, or pair it with pre-deploy snapshots.

Also in cipi.yml (health:), the REST API and the panel. To watch the server rather than the app, see Server monitor.