TIL: One-line Python HTTP server
2023-10-03
- http
I use this one a lot to serve static files. It’s very handy! You may need to
bind to 127.0.0.1
if your machine doesn’t have a localhost
entry for its
loopback device.
python3 -m http.server -b localhost 8000