Skip to content

Upgrade and rollback

Upgrading only replaces the image. Data directory, port and secrets are reused from .env; database migrations run automatically on container start — no manual SQL.

终端窗口
# 1) Extract the new package into a NEW directory (never overwrite the old one)
cd /opt
tar -xzf pacasys-community-<version>-amd64.tar.gz -C /opt/pacasys-<version>
# 2) Run from the extracted directory: backup → load image → recreate → rollback on failure
cd /opt/pacasys-<version>
sudo ./upgrade.sh
终端窗口
docker ps --format '{{.Names}}\t{{.Image}}\t{{.Status}}' | grep pacasys
curl -fsS http://127.0.0.1:8080/healthz && echo OK
sudo ./doctor.sh

A blank page in the browser after an upgrade is usually a stale frontend chunk — hard-reload (Ctrl+Shift+R).

终端窗口
sudo sed -i 's|^PACASYS_IMAGE=.*|PACASYS_IMAGE=pacasys:<old-version>|' /opt/pacasys/.env
cd /opt/pacasys && sudo ./install.sh --skip-load

The previous image is still on the host until you prune it, so rollback is always possible.

  • A usable backup exists (backup.sh or pg_dump) and secrets is stored off-box
  • sha256sum -c SHA256SUMS passes for the new package
  • Current version recorded (cat /opt/pacasys/VERSION)
  • Off-peak window, users notified