Skip to content

Updating

Updating a self-hosted amabledata is a redeploy: check out the new release, install, rerun the setup script. Database changes are applied automatically when the new version starts. This page explains the release scheme, the update notice, the backups to take first and what happens during the update.

  • Releases are date-based tags: YEAR.MONTH.N, for example 2026.10.1, 2026.10.2, 2026.10.3. A higher tag is a newer release.

  • Releases are published on github.com/Ratne/AmableData/releases, with release notes. Select Watch › Custom › Releases on the repository to get them by email.

  • The update command, run from your checkout:

    Terminal window
    git fetch --tags && git checkout <tag> && pnpm install && pnpm self-host:setup --deploy

    Pass the same options you used for the installation (--app-origin, --edge-origin, and so on). Do not pass --owner-email again (it is harmless: it creates nothing on an installation that has users).

In the Cloud edition you do nothing: updates are applied automatically through release channels.

  1. When the setup script deploys, it sets APP_VERSION from the release tag of your checkout (git describe --tags). Outside a tag the notice stays off.

  2. Once a day, the core Worker’s cron asks GitHub for the latest public release (one request a day at most; if GitHub does not answer, the previous answer is kept).

  3. When the latest release is newer than APP_VERSION, members with the Owner role in at least one workspace see a banner: amable <latest> is available. This installation runs <current>. with Release notes and how to update and Hide until the next version.

Set the variable UPDATE_CHECK=off to disable the check (and the request to GitHub).

It runs the same steps as an installation (see Install with the setup script):

  • finds the existing database, bucket and queues (and creates any new queue a release adds, for example esign-seal for electronic signatures);
  • regenerates the production configs from the templates of the new release;
  • builds the dashboard and deploys the edge, the core, then the edge again;
  • keeps every existing secret, and only adds secrets a release introduces.

You never run migration commands:

Database When it is migrated
Installation database (D1 amable-installation) At the first request served by the new version (API, email link, edge call). An advisory lock makes sure concurrent requests apply each migration only once; if a migration fails, the next request retries.
Workspace databases (Durable Objects TenantDb, MailDb, Engine and others) When each Durable Object starts with the new code. Each migration is applied in a transaction.
Durable Object classes New classes are created by Cloudflare at deploy time from the migrations list in the config.

Migrations only move forward. There is no automatic downgrade.

  1. Read the release notes of every release between your version and the target.

  2. In each workspace you own, open Settings › Backups and select Create backup, then Download it. A backup contains contacts, sales, email, automations, members and the audit log of that workspace. Daily backups are also taken automatically (the last 7 daily and 5 manual backups are kept). See Backups.

  3. Note the time. The installation database can also be restored to a point in time with Cloudflare D1 Time Travel:

    Terminal window
    pnpm exec wrangler d1 time-travel info amable-installation
  4. Make sure your local changes to the templates (deploy/self-host/*.wrangler.jsonc) are committed on your own branch, or saved, so git checkout does not refuse or lose them.

  1. Go to your checkout: cd AmableData.

  2. Fetch the release tags: git fetch --tags.

  3. Check out the new release, for example git checkout 2026.10.3. If you keep custom templates on a branch, merge or rebase that branch on the tag instead.

  4. Install the dependencies of that release: pnpm install.

  5. Make sure Wrangler is still signed in: pnpm exec wrangler whoami (otherwise pnpm exec wrangler login).

  6. Optional: preview with --dry-run.

  7. Run the setup script with your usual options:

    Terminal window
    pnpm self-host:setup --deploy \
    --app-origin https://crm.example.com \
    --edge-origin https://t.example.com
  8. Check the printed version: line shows the new tag.

  9. Open the dashboard and reload. The first request applies the installation migrations; it can take a few seconds longer than usual.

  10. Check <app-origin>/api/health answers, open a contact, and check that Analytics receives events.

You can jump directly to the latest tag: migrations of every intermediate release are applied in order. Read all the release notes in between first.

  1. Read the Wrangler error printed by the script. Fix the cause (for example a missing permission or plan) and rerun the same command: the script is safe to rerun.

  2. If the new version runs but misbehaves, report it on GitHub Issues with the version and the error.

  3. Going back to an older tag is not supported once the new version has migrated the databases. If you must, restore the data first (D1 Time Travel for the installation database and the workspace backups made on the old version), then redeploy the old tag.

Item Value
Tag format YEAR.MONTH.N, for example 2026.10.3 (v prefix tolerated)
Between releases git describe gives 2026.10.3-3-gabc1234 (3 commits after the tag)
Update command git fetch --tags && git checkout <tag> && pnpm install && pnpm self-host:setup --deploy
Update check Once a day, against the latest GitHub release
Who sees the notice Owners of at least one workspace
Disable the check UPDATE_CHECK=off
Migrations Automatic, forward only
Secrets Kept across updates
Daily backups kept 7 daily, 5 manual
  • Updating requires access to the Cloudflare account (Wrangler) and a checkout of the repository.
  • Only workspace owners can create, download and restore backups (Only the workspace owner can manage backups.).
  • Avoid using the workspaces while an update is being deployed; requests during the deploy may hit either version for a few seconds.
Symptom Cause Fix
git checkout refuses: local changes would be overwritten You edited tracked files (templates, generated configs are ignored) Commit them on a branch or git stash, then check out and reapply.
pnpm install fails Node.js too old for the new release Install Node.js 20 or later.
The banner still shows the old version The browser cached the answer, or APP_VERSION was not set Reload; check the script printed the new version:.
The first page load after the update is slow or fails once Installation migrations are running Reload after a few seconds. A failed migration is retried at the next request.
A variable you had set is gone Variables come from the regenerated config Put it in deploy/self-host/*.wrangler.jsonc or store it as a secret.
Restoring an old backup fails with different data version The backup predates the update Restore it on the version it was created with, or use a backup made after the update.