> ## Documentation Index
> Fetch the complete documentation index at: https://docs.azvian.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Updating

> Move to a newer version of Contracts without losing your documents

Contracts does not yet have an in-app update check or installer. You update by uploading the new release over the old files; the database upgrades itself the next time someone opens the site.

> [!WARNING]
>
> **Back up first.** Export your database, and keep a copy of your `.env` file and the `storage/` folder (it holds your signed PDFs, logo and logs). An update never overwrites any of these, but a backup is what lets you undo anything.

**1. Get the new release**

Download the new zip from your Gumroad receipt or from the page Azvian sent you, and unzip it on your computer.

**2. Upload it over the old files**

Upload its contents over the files on your hosting. **Keep your `.env` file and the `storage/` folder**: do not replace them.

**3. Open the site**

The first visit notices that the code is newer than the version recorded at install and migrates the database before showing anything. If someone else opens the site at the same moment, they see "Updating, please reload this page in a few seconds."

Files that a new version no longer includes are left in place. They are harmless.

## On Docker or Coolify

Redeploy from the repository or image. Keep `storage/` on a persistent volume.

## If something goes wrong

If the database upgrade stops with a message, the site shows it in plain text. Restore the previous release's files and your database backup, and contact us at [hello@azvian.com](mailto:hello@azvian.com) with the message.

See also the general guide: [Updating](https://docs.azvian.com/start/updating.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.