Skip to main content

Upgrades

Upgrade process​

1. Back up your database​

cd deploy
docker compose -f docker-compose.ee.yml exec postgres pg_dump -U aiser aiser > backup-$(date +%Y%m%d).sql

2. Pull the latest code​

git pull origin main

3. Rebuild and restart​

cd deploy
make ee-recreate

ee-recreate rebuilds the server image and force-recreates the container. Database migrations run automatically on startup.

4. Verify​

docker compose -f docker-compose.ee.yml ps
curl http://localhost:8001/health

Full rebuild​

To rebuild all images (e.g., after a major release):

cd deploy
make ee

Rolling back​

If an upgrade fails:

# Restore the database
docker compose -f docker-compose.ee.yml exec -T postgres psql -U aiser aiser < backup-YYYYMMDD.sql

# Revert the code
git checkout <previous-tag-or-commit>

# Rebuild
make ee