Skip to content

Instantly share code, notes, and snippets.

@davidwood
Created May 3, 2011 22:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidwood/954363 to your computer and use it in GitHub Desktop.
Save davidwood/954363 to your computer and use it in GitHub Desktop.
Serve current directory over HTTP using Python
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