Cyril Rohr
Cyril Rohr.

One-liner to start a local HTTP server


Useful for quickly testing Javascript and AJAX-y stuff. Launch the following command in the directory where you want to serve files from, and you’ll have a server ready at http://localhost:8888:

$ python -m SimpleHTTPServer 8888