Created
May 3, 2011 22:05
-
-
Save davidwood/954363 to your computer and use it in GitHub Desktop.
Serve current directory over HTTP using Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -m SimpleHTTPServer | |
By default, SimpleHTTPServer serves on port 8000. To specify a port, use (where 9090 is the port you want): | |
python -m SimpleHTTPServer 9090 | |
And to run it in the background, use: | |
python -m SimpleHTTPServer & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment