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