Интегрирован wesp в сайт
CI / quality (push) Canceled after 0s

This commit is contained in:
влад
2026-07-17 12:57:18 +03:00
parent 5dfa06ddbe
commit 355c0ef9f1
883 changed files with 194576 additions and 177 deletions
+5 -5
View File
@@ -2,10 +2,10 @@
## Bootstrap
1. Copy env template and run install secrets (`site/scripts/` or admin UI).
2. Start stack: `docker compose -f site/infra/docker/docker-compose.prod.yml up -d`.
1. Copy env template and run install secrets (`scripts/` or admin UI).
2. Start stack: `docker compose -f infra/docker/docker-compose.prod.yml up -d`.
3. Run migrations: `docker compose exec api alembic upgrade head`.
4. Sync WESP static UI: `site/scripts/sync-wesp-ui.sh`.
4. (Optional) Sync WESP static UI from hub: `scripts/sync-wesp-ui.sh` — skipped if `apps/web/public/wesp/` already exists in git.
## Hub pairing
@@ -33,12 +33,12 @@
- Rotate `JWT_ACCESS_SECRET`, `JWT_REFRESH_PEPPER`, hub API keys.
- Enable PostgreSQL RLS in production (`DATABASE_URL=postgresql+psycopg://...`).
- Review `site/docs/security.md` before go-live.
- Review `docs/security.md` before go-live.
## Tests (CI gate)
```bash
cd site/apps/api && .venv/bin/python -m pytest tests/modules/sync/test_orchestrator_dual_hub_e2e.py -q
cd apps/api && .venv/bin/python -m pytest tests/modules/sync/test_orchestrator_dual_hub_e2e.py -q
```
Dual-hub E2E must pass before merge.
-1
View File
@@ -16,7 +16,6 @@ Monorepo-lite: статический лендинг + React SPA + FastAPI + Pos
## Дерево репозитория
```
site/
├── apps/
│ ├── api/ # Backend
│ │ ├── app/