Quick http server for static files ( for development )
filed in Tips on Jan.08, 2013
If you have python installed, change to your static file directory and
$ cd /files/html/ $ python -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 ...
This will start an http server on port 8000 that serves all files in the current directory.
All the debug is written to console including incomming requests and the server reponse to them.
If you want a different port just pass it as argument:
$ python -m SimpleHTTPServer 9595 Serving HTTP on 0.0.0.0 port 9595 ...
Leave a Reply