Updating
このコンテンツはまだ日本語訳がありません。
Treat an update like any change to a service: update, check, verify.
Prebuilt bundle (the installer)
Section titled “Prebuilt bundle (the installer)”kurahi update --check # what is newer, without changing anythingkurahi update # download, verify SHA-256, switch atomically, restart the servicekurahi health # the gateway answers on its portEach release is a self-contained bundle: its own Node.js runtime, the built product and its
dependencies, a bundle-manifest.json and a SHA256SUMS file. kurahi update refuses a bundle whose
checksum does not match the published SHA256SUMS.txt, and the unpacked bundle must pass its own
SHA256SUMS and match the OS, architecture and version in its manifest before it is switched in.
On Windows the new version is staged and applied by the launcher on the next start.
Re-running the installer is equivalent and also works offline with a local bundle:
curl -fsSL https://kurahi.com/install.sh | bash -s -- --no-init --no-service --no-invitecurl -fsSL https://kurahi.com/install.sh | bash -s -- --bundle ./kolo-<version>-linux-x64.tar.gz --sums ./SHA256SUMS.txt& ([scriptblock]::Create((iwr -useb https://kurahi.com/install.ps1))) -NoInit -NoService -NoInvitePackage install
Section titled “Package install”Update by running the installer again (it installs the latest release side by side) and then:
kurahi doctorkurahi service restartSource checkout
Section titled “Source checkout”git pullpnpm install --frozen-lockfilepnpm buildkurahi doctorkurahi service restartkurahi update runs those steps for you and stops when the working tree has uncommitted changes.
After an update
Section titled “After an update”kurahi doctorreports config and service issues and offers repairs.kurahi healthconfirms the gateway is serving;kurahi service statusshows the supervisor view.kurahi update statusshows the running version and the newest release.
Rollback
Section titled “Rollback”Bundle installs keep every installed version under the install prefix (default
~/.local/share/kolo/<version> on Linux and macOS, %LOCALAPPDATA%\KoLo\app\<version> on Windows)
and point the kolo command at one of them. To go back:
curl -fsSL https://kurahi.com/install.sh | bash -s -- --version <previous> --no-init --no-service --no-invitekurahi service restartInstaller installs: run the installer with --version <version> (PowerShell: -Version <version>). Source checkouts: check out the
previous tag, build, restart.
State in KOLO_HOME is not touched by updates or rollbacks. Config changes are merged, never
rewritten, so a rollback never needs a config restore. An older version does not accept keys it
does not know, though: if you turned on a setting that is new in the later release, remove it
before you start the older version (for 2.2.0 back to 2.1.0, see
Kurahi 2.2.0).