Skip to content

Instantly share code, notes, and snippets.



Last active Dec 11, 2015
What would you like to do?
import SimpleHTTPServer
import SocketServer
SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map['.webapp'] = 'application/x-web-app-manifest+json'
SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map['.manifest'] = 'application/x-web-app-manifest+json'
httpd = SocketServer.TCPServer(("", 3000), SimpleHTTPServer.SimpleHTTPRequestHandler)
print 'serving from http://localhost:3000/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.