Web server one-liner
Instantly serve the current directory on port 8888:
python -m SimpleHTTPServer 8888
Written by Benjamin Goering
Related protips
4 Responses
you don't need to specify the port, the default is 8000
over 1 year ago
·
Like :D full python
over 1 year ago
·
PHP has an nested server too.
over 1 year ago
·
For python3: python -m http.server
over 1 year ago
·
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#