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