@@ -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.
|
||||
|
||||
@@ -16,7 +16,6 @@ Monorepo-lite: статический лендинг + React SPA + FastAPI + Pos
|
||||
## Дерево репозитория
|
||||
|
||||
```
|
||||
site/
|
||||
├── apps/
|
||||
│ ├── api/ # Backend
|
||||
│ │ ├── app/
|
||||
|
||||
Reference in New Issue
Block a user