Skip to main content

Updating

You can update AirTrail to the latest version by following these steps.

Docker Compose

To update your Docker Compose installation, run the following command in the directory where the docker-compose.yml and .env files are located:

Update AirTrail
docker compose pull && docker compose up -d

Manual Installation

tip

Before updating, it is recommended to back up your database in case something goes wrong.

Updating a manually installed version of AirTrail is a bit more involved. You need to pull the latest changes from the repository, install the dependencies, rebuild the app, and run the database migrations.

Before you start, make sure you have turned off the old version of AirTrail.

Pull the Latest Changes

First, navigate to the directory where you installed AirTrail and pull the latest changes from the repository:

Pull the latest changes
git pull

Install Dependencies

Next, install the dependencies:

Install the dependencies
bun install

Build the App

Now, build the app:

Build the app
bun run build

Run Database Migrations

Finally, run the database migrations:

warning

Make sure you ran the database migrations after the initial installation as well, or you risk losing data when updating.

Run the database migrations
bun run db:migrate-deploy