How to upgrade BaseBuddy safely
Upgrade a self-hosted BaseBuddy install with app-data backups, build verification, setup checks, and rollback notes.
Use this guide when you are upgrading a self-hosted BaseBuddy install.
The setup source of truth is the selected BaseBuddy app-data backend. The default is basebuddy-data/basebuddy.config.json; Supabase/Postgres app-data installs use BaseBuddy-owned basebuddy tables. Upgrades should preserve app data and verify the content database mapping still works.
Before you change anything
- Record the current BaseBuddy version or commit.
- Back up BaseBuddy app data.
- Back up the content Postgres database.
- Confirm where production stores app data.
- Check release notes for config schema, mapping, permission, or runtime changes.
Upgrade code and dependencies
Update your checkout or deployment image, then install dependencies:
shpnpm installBuild before putting editors back into the app:
shpnpm buildRun setup checks
From the app working directory:
shpnpm basebuddy doctorThen open:
texthttps://cms.example.com/onboarding?diagnostics=1Fix any app-data, owner, auth, content database, or storage issue before asking editors to resume work.
Smoke test mapped content
After checks pass:
- Sign in.
- Open an existing project.
- Confirm members and permissions still appear.
- Open mapping and confirm the saved mapping loads.
- Edit one safe mapped field and save.
- Confirm publish, unpublish, and archive still require explicit actions.
Roll back if needed
If the upgrade fails, restore the previous code version and the backed-up app data. Restore the content database only if content data itself was changed and needs rollback.
Do not run old database setup scripts against the content schema as a rollback strategy. BaseBuddy never repairs upgrades by mutating your user content tables.