fix: bind living example on all interfaces, default port 8000

The example server bound 127.0.0.1 only, so it was unreachable from
other hosts, and defaulted to 8080. It now binds 0.0.0.0 on 8000
(README, Makefile deploy and locust targets updated to match).

Also: a leading --flag no longer gets parsed as the port, so
'living-server --no-locust' starts instead of exiting with 'bad port'.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 04:15:09 +01:00
co-authored by Claude Haiku 5.5
parent 9c4a4ac7e4
commit a2a737e21d
4 changed files with 14 additions and 13 deletions
+2 -2
View File
@@ -3,9 +3,9 @@
Run against a live server:
make -f example/example.mk example
./build/example/living-server 8080 &
./build/example/living-server 8000 &
pip install locust
locust -f example/locustfile.py --host http://127.0.0.1:8080
locust -f example/locustfile.py --host http://127.0.0.1:8000
Then open the Locust web UI at http://localhost:8089.
"""