recommend watchexec for development instead of calling uvicorn

This lets us setup initialization logic much more uniformly
(e.g. configuring loggers)
This commit is contained in:
lilly 2026-05-04 11:01:04 +02:00
commit d3814a359d
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g

View file

@ -17,5 +17,5 @@ Most things should automatically be set up with the included [direnv script](./.
1. Go to the api/ directory 1. Go to the api/ directory
2. Run `uv venv` to create a python virtual environment 2. Run `uv venv` to create a python virtual environment
3. Install all dependencies of the dooris project into that virtual environment with `uv sync` 3. Install all dependencies of the dooris project into that virtual environment with `uv sync`
4. Run a development server `uv run uvicorn dooris_api:app --reload` 4. Run a development server `watchexec -r -w src/ uv run dooris-api`