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.
Before you upgrade
Section titled “Before you upgrade”- Read the release notes for every version between yours and the target.
- Copy a recent backup off the server; see backups.
- Plan for downtime. The script waits for running crawls to finish, which can take up to about 21 minutes.
Upgrade
Section titled “Upgrade”Check out the release you reviewed, then run the script from the checkout:
cd "$HOME/heptapod"git fetch --tagsgit checkout <release-tag>./scripts/upgrade.shThe 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.
When an upgrade fails
Section titled “When an upgrade fails”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.
After the upgrade
Section titled “After the upgrade”Sign in, open a site and run a check. Then preview the spread of scheduled checks and apply it:
dc() { docker compose --env-file .env.prod "$@"; }dc exec app php artisan heptapod:checks:rebalance-schedule --dry-rundc exec app php artisan heptapod:checks:rebalance-schedule