Updating
How to update your LinkDen instance to the latest version with minimal downtime.
Updating LinkDen
LinkDen follows semantic versioning. The current version is tracked in version.json at the root of the repository. The admin dashboard shows a notification when a new version is available.
Update Process
1. Pull the Latest Changes
git pull origin mainIf you have local modifications, stash them first:
git stash
git pull origin main
git stash pop2. Install Updated Dependencies
pnpm installThis updates any new or changed dependencies across all workspaces.
3. Run Database Migrations
If the update includes database schema changes, generate and push migrations:
pnpm db:generate
pnpm db:pushCheck the release notes to see if migrations are required. Running db:push when there are no changes is safe -- it simply reports that everything is up to date.
4. Rebuild and Deploy
pnpm cf:deployThis rebuilds all apps and deploys the updated versions to Cloudflare.
Checking for Updates
The admin settings page checks the version.json file against the latest release. You can also check manually:
git fetch origin
git log HEAD..origin/main --onelineThis shows any commits on main that you have not pulled yet.
Rolling Back
If an update causes issues, you can roll back to a previous version:
git log --oneline -10 # Find the commit to roll back to
git checkout <commit-hash>
pnpm install
pnpm cf:deployFor database rollbacks, restore from your most recent export (see Export/Import).
Best Practices
- Back up your data before updating. Use the export feature in the admin settings.
- Read the release notes for each version to understand what changed.
- Test locally before deploying. Run
pnpm devand verify everything works. - Keep your fork in sync if you have customizations. Regularly merge upstream changes.