feat(gateway): optional .env loading for local dev (app + seed); document in e2e guide

This commit is contained in:
PedroHMCosme
2026-07-17 09:44:38 -03:00
parent 0e29cc4054
commit 0d60a3fb67
4 changed files with 17 additions and 1 deletions

View File

@@ -20,6 +20,8 @@ Session script for validating the gateway against a real KepServer + cluster (wi
## 1. Seed test data
Copy `.env.example` to `.env` (gitignored) and fill in the values from the session (OPC endpoint, Mongo/Redis/Postgres/MinIO accesses) — both the app and the seed script read it automatically (add `OPC_SERVER_URL=opc.tcp://HOST:49320`; it is seed-only, so it isn't in the example file). Then:
```bash
python scripts/seed_e2e.py --print-only # inspect first
python scripts/seed_e2e.py # seed Mongo + Redis slot v1 + Postgres table