Upgrading
Quick backup
Section titled “Quick backup”# DB snapshot (WAL-safe via VACUUM INTO)sudo simpledeploy db backup --output /var/lib/simpledeploy/backups/pre-upgrade.db
# Compose filessudo tar -czf ~/apps-pre-upgrade.tgz /etc/simpledeploy/appsUpgrade by install method
Section titled “Upgrade by install method”sudo apt updatesudo apt upgrade simpledeploysystemd restarts the service automatically when the package replaces the binary.
cd /etc/simpledeploysudo docker compose pullsudo docker compose up -dThe container restarts with the new image. Schema migrations run on start.
brew updatebrew upgrade simpledeploy-
Download and verify the new tarball (
sha256summust printOK):Terminal window VERSION=1.4.8 # target release: https://github.com/vazra/simpledeploy/releases # x-release-please-versionARCH=amd64 # or arm64FILE="simpledeploy_${VERSION}_linux_${ARCH}.tar.gz"curl -fsSLO "https://github.com/vazra/simpledeploy/releases/download/v${VERSION}/${FILE}"curl -fsSLO "https://github.com/vazra/simpledeploy/releases/download/v${VERSION}/checksums.txt"grep " ${FILE}$" checksums.txt | sha256sum -c - \&& tar xzf "$FILE" simpledeploy -
Stop, replace, start:
Terminal window sudo systemctl stop simpledeploysudo install -m 0755 simpledeploy /usr/local/bin/simpledeploysudo systemctl start simpledeploy
cd simpledeploygit pullmake buildsudo systemctl stop simpledeploysudo cp bin/simpledeploy /usr/local/bin/sudo systemctl start simpledeployWhat happens on first start
Section titled “What happens on first start”- Binary boots, opens the SQLite file.
- Embedded migrations run in order. Any new schema is applied transactionally.
- Caddy reloads with the existing route config.
- The reconciler re-scans
apps_dirand reconciles desired state.
App containers stay running across the upgrade. The dashboard is briefly unavailable (a few seconds).
Breaking changes
Section titled “Breaking changes”Read the CHANGELOG before any minor version bump. Compose label renames or config field changes will be called out there with migration steps.
1.4.8: jobs that extend another file
Section titled “1.4.8: jobs that extend another file”A top-level jobs entry that uses extends with file: now looks up the target in that file’s jobs: section, not services: (matches current docker compose). If such an app fails to load after upgrading, move the base definition under jobs: in the referenced file:
jobs: base: image: alpineRollback
Section titled “Rollback”If a new version misbehaves:
-
Stop the service:
Terminal window sudo systemctl stop simpledeploy -
Restore the previous binary:
Terminal window # aptsudo apt install simpledeploy=<previous-version># binarysudo cp /path/to/old/simpledeploy /usr/local/bin/ -
Restore the DB snapshot:
Terminal window sudo cp /var/lib/simpledeploy/backups/pre-upgrade.db /var/lib/simpledeploy/simpledeploy.db -
Start:
Terminal window sudo systemctl start simpledeploy
Restoring the DB undoes any new-schema rows the new version wrote. App containers themselves are unaffected by the rollback.