Skip to content

Updating Kuayle

The repository update script fetches the current branch, rebuilds the application images, stops the backend while pending migrations run, then starts only the new version. Back up PostgreSQL and upload storage and review the release notes before running it.

Manual update via script

Run the script from a clean repository checkout. It uses `git pull --ff-only`, serves an upgrade page, rebuilds the backend and frontend, stops the backend, applies migrations and then starts the new containers.

  • cd kuayle
  • bash selfhosting/update.sh
  • The script: pulls latest code → rebuilds images → stops the backend → runs migrations → starts the new version

One-click update from the UI

Authorized sysadmins can invoke the same script from Settings → Version after the updater sidecar and token are configured. This grants the sidecar access to the Docker socket and repository checkout.

  • Add your user ID to SYSADMINS in selfhosting/.env
  • Set SYSTEM_UPDATER_TOKEN to a strong random string
  • Start the updater sidecar with the updater profile
  • Use the Update button in Settings → Version

What happens during an update

Application requests receive an upgrade page while the update runs. No old backend writes to the database during migrations. If a migration fails, the script leaves the backend stopped behind the upgrade page instead of restarting an older version against a partially migrated schema; failures before that point restore the previous containers. A running Dev Machines control plane is rebuilt, paused during migrations and restarted.

  • Upgrade page served during the update
  • Backend stopped before migrations, so mixed old/new writers cannot run
  • Failed migrations keep the backend stopped and preserve logs for inspection
  • PostgreSQL and Redis are not recreated by the script
  • Disabled optional profiles stay disabled

Version notices and changelog

The application reads the published release manifest to show a multi-release changelog and the latest version in Settings → Version. Release notes list required migrations and upgrade steps; read them before updating, especially for releases that change authorization or privacy rules.

  • In-app changelog rendered from the release manifest
  • Settings → Version shows the update command or the Update button
  • Upgrade notes call out migrations and configuration changes

Review Kuayle before you deploy it

Inspect the Apache 2.0 source, then follow the Docker Compose guide to run an instance on your infrastructure.