Fix WESP UI after git clone: serve from public/wesp and materialize static.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
влад
2026-07-16 11:43:25 +03:00
co-authored by Cursor
parent 2c294424ef
commit 5dfa06ddbe
8 changed files with 49 additions and 36 deletions
+6 -1
View File
@@ -7,11 +7,16 @@
## Быстрый старт
```bash
python apps/api/scripts/bootstrap_install.py # один раз, до первого up
git clone https://git.groupkomton.ru/Matvey/site.git && cd site
python apps/api/scripts/bootstrap_install.py # один раз, до первого up (секреты БД)
bash scripts/materialize-wesp-static.sh # WESP UI → public/static (авто при pnpm dev)
docker compose --profile docker-web up -d --build
curl http://localhost:8000/api/v1/health # Windows: curl.exe
```
> **После `git clone` обязательно:** `bootstrap_install.py` **до** `docker compose up` — иначе Postgres не примет пароль из `install.env`.
> WESP UI лежит в git (`apps/web/public/wesp/`); `public/static/` генерируется скриптом (не в git).
| URL | Что там |
|-----|---------|
| http://localhost:5173 | Лендинг `/` + SPA (`/login`, `/admin`, …) |