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
Written by Kristján Oddsson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#