docs: build.sh deploy workflow + badge versione (CLAUDE.md, README)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
cf726b479e
commit
7b4dc6ce8c
2 files changed
+15
No files matched your search
@@ -9,6 +9,8 @@ Build & run (Docker):
|
||||
docker compose up -d presa-mano # serves GUI + API on http://localhost:8890
|
||||
```
|
||||
|
||||
**Deploy changes — use `./build.sh`.** `src/` and `web/` are baked into the image (only `config.yaml` + `data/` are bind-mounted), so **code edits are invisible until the image is rebuilt**. `./build.sh` auto-bumps `VERSION` (patch by default; `./build.sh minor|major` for the others), injects version + build time as build-args, rebuilds, and restarts the container. The running version is shown as a badge in the GUI header (and at `GET /api/version`) so a stale deployment is visible at a glance. The `VERSION` bump is left uncommitted — commit it with your changes.
|
||||
|
||||
Local dev (uses `uv`, same as the Dockerfile):
|
||||
```bash
|
||||
uv sync # install deps from pyproject.toml
|
||||
@@ -17,6 +19,7 @@ uv run uvicorn presa_mano.main:app --host 0.0.0.0 --port 8890 --reload
|
||||
|
||||
Useful endpoints (all under `http://localhost:8890`):
|
||||
- `GET /apidocs` — Swagger UI; `GET /redoc` — ReDoc.
|
||||
- `GET /health` — liveness; `GET /api/version` — `{version, build_time}` baked at build by `build.sh` (falls back to the `VERSION` file + `(local)` under `uv run`).
|
||||
- `GET/PUT /api/config` — read/patch runtime config (deep-merged into `config.yaml` and persisted).
|
||||
- Calibration: `POST /api/calibration/sample`, `GET/DELETE /api/calibration/samples`, `POST /api/calibration/solve`, `GET /api/calibration/result`, `POST /api/calibration/preview`.
|
||||
- Perception: `POST /api/perception/detect`, `POST /api/perception/object_points`, `GET /api/perception/measure`.
|
||||
|
||||
Reference in new issue
Block a user