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.
Overview
Section titled “Overview”-
Releases are date-based tags:
YEAR.MONTH.N, for example2026.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 --deployPass the same options you used for the installation (
--app-origin,--edge-origin, and so on). Do not pass--owner-emailagain (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.
How it works
Section titled “How it works”The “new version available” notice
Section titled “The “new version available” notice”-
When the setup script deploys, it sets
APP_VERSIONfrom the release tag of your checkout (git describe --tags). Outside a tag the notice stays off. -
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).
-
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).
What the setup script does on an update
Section titled “What the setup script does on an update”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-sealfor 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.
Migrations run automatically
Section titled “Migrations run automatically”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.
Step by step
Section titled “Step by step”Before updating: back up
Section titled “Before updating: back up”-
Read the release notes of every release between your version and the target.
-
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.
-
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 -
Make sure your local changes to the templates (
deploy/self-host/*.wrangler.jsonc) are committed on your own branch, or saved, sogit checkoutdoes not refuse or lose them.
Update
Section titled “Update”-
Go to your checkout:
cd AmableData. -
Fetch the release tags:
git fetch --tags. -
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. -
Install the dependencies of that release:
pnpm install. -
Make sure Wrangler is still signed in:
pnpm exec wrangler whoami(otherwisepnpm exec wrangler login). -
Optional: preview with
--dry-run. -
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 -
Check the printed
version:line shows the new tag. -
Open the dashboard and reload. The first request applies the installation migrations; it can take a few seconds longer than usual.
-
Check
<app-origin>/api/healthanswers, open a contact, and check that Analytics receives events.
Update across several releases
Section titled “Update across several releases”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.
If something goes wrong
Section titled “If something goes wrong”-
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.
-
If the new version runs but misbehaves, report it on GitHub Issues with the version and the error.
-
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.
Reference
Section titled “Reference”| 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 |
Limits and permissions
Section titled “Limits and permissions”- 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.
Troubleshooting
Section titled “Troubleshooting”| 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. |

