Skip to content

Updating

Settings → Updates shows whether a newer release exists. Upgrades run on the server with scripts/upgrade.sh. It backs up, upgrades and verifies in one step.

  1. Read the release notes for every version between yours and the target.
  2. Copy a recent backup off the server; see backups.
  3. Plan for downtime. The script waits for running crawls to finish, which can take up to about 21 minutes.

Check out the release you reviewed, then run the script from the checkout:

shell
cd "$HOME/heptapod"
git fetch --tags
git checkout <release-tag>
./scripts/upgrade.sh

The script puts the app into maintenance mode, stops the workers, creates an encrypted backup, pulls the new images, starts the stack and leaves maintenance mode only after every service is healthy. It never removes volumes.

If you build images from source instead of pulling them, run ./scripts/upgrade.sh --build.

A failed step stops the script and leaves maintenance mode on. Read the error before you continue. Migrations can change the database, so going back to the old version can require restoring the backup the script made. Keep the old revision and its images until the new version runs well.

Sign in, open a site and run a check. Then preview the spread of scheduled checks and apply it:

shell
dc() { docker compose --env-file .env.prod "$@"; }
dc exec app php artisan heptapod:checks:rebalance-schedule --dry-run
dc exec app php artisan heptapod:checks:rebalance-schedule