Simple HTTP server for static files


Python has a built-in HTTP server that is perfect for serving up a directory of static files during development.

Python 3.x:

python3 -m http.server 8000 --bind 127.0.0.1

Python 2.x:

python -m SimpleHTTPServer 8000

Date: 2017-03-09

Tags:  python

Share: