Last Updated: February 25, 2016
·
737
· koddsson

Simple webserver in seconds

python -m SimpleHTTPServer

Starts a HTTP server in the current directory. It defaults to port 8000 but you can easily specify a port as a argument

python -m SimpleHTTPServer 1337

It's particularly useful when sharing one-off files on a local network or simple testing of new frameworks