docs: note automatic migrations in README

This commit is contained in:
2026-08-13 13:13:32 +02:00
parent 032e74df2e
commit 3241d07ed1

View File

@@ -44,23 +44,18 @@ Starts PostgreSQL and the server together:
docker compose up --build
```
The server will be available at `http://localhost:3000`.
The server will be available at `http://localhost:3000`. Migrations run automatically on startup — no manual step needed.
### 2b. Run locally
Requires a running PostgreSQL instance matching your `DATABASE_URL`.
```bash
# Install sqlx-cli if needed
cargo install sqlx-cli --no-default-features --features rustls,postgres
# Run migrations
sqlx migrate run
# Start the server
cargo run
```
Migrations are embedded in the binary and run automatically when the server starts.
## Environment variables
| Variable | Description | Example |