Skip to content

Instantly share code, notes, and snippets.

@aaronlifton3
Created January 21, 2013 23:45
Show Gist options
  • Save aaronlifton3/4590657 to your computer and use it in GitHub Desktop.
Save aaronlifton3/4590657 to your computer and use it in GitHub Desktop.
simple python server for web development etc.
#!/usr/bin/env python
import SimpleHTTPServer
import SocketServer
PORT = 8000
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
print "Server running on port ", PORT
httpd.serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment