Prerequisites
- A PostgreSQL database reachable from the Fleet host
- Fleet RLM installed with
uv sync --dev - Daytona and model credentials configured as in the quickstart
Point Fleet at PostgreSQL
SetFLEET_DATABASE_URL in .env. Fleet normalizes postgres:// and postgresql:// URLs to the postgresql+asyncpg:// driver.
.env
upgrade also accepts --database-url to override FLEET_DATABASE_URL for one run, and --env-file to load a different environment file.
Managed deployments that use the Lakebase preflight must connect as the
fleet_app role with TLS (ssl=require, verify-ca, or verify-full).Database commands
scripts/database.py provides four operations.
Move data from SQLite
import-sqlite reads both URLs from environment variables, creates a verified SQLite backup, and writes a receipt.
Run the backend
Health checks
Upgrade
- Stop Fleet.
- Pull the new release and run
uv sync --dev. - Run
uv run python scripts/database.py upgrade. - Rebuild Daytona snapshots if the release changes them. See Sandbox execution.
- Start Fleet.