dev server uses admin login too: localhost shows the public view

Drop open_access; run() prints a one-off PHYSCOM_ADMIN_TOKEN when none is set.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-09-25 17:27:55 -05:00
parent 8171fc023e
commit af401d6bc2
6 changed files with 25 additions and 26 deletions

View File

@@ -59,10 +59,10 @@ docker compose run --rm cli results urban_commuting --top 10
```bash
pip install -e ".[dev,web]"
python -m physcom demo # seed + run passes 1-3 for every domain
python -m physcom_web # localhost-only dev server, no login needed
python -m physcom_web # localhost dev server, prints an admin login token
```
Then open [http://localhost:5000](http://localhost:5000). Set `FLASK_DEBUG=1` for the Werkzeug debugger (never on a reachable host).
Then open [http://localhost:5000](http://localhost:5000). You see the public read-only view; log in at `/login` with the printed token (or your `PHYSCOM_ADMIN_TOKEN`) to edit. Set `FLASK_DEBUG=1` for the Werkzeug debugger (never on a reachable host).
Run tests: