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:
@@ -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`, …) |
|
||||
|
||||
Reference in New Issue
Block a user