Tuesday, August 19, 2014

On the fly server with Python

Run the following command in a directory of choice to make it a local web server for testing.

python -m SimpleHTTPServer 8888
Or better yet make a shell script server.sh to run it anytime you want. This comes handy when running data visualizations using D3. As a matter of fact this is where this python command was found. Source

No comments:

Post a Comment