Skip to content

Instantly share code, notes, and snippets.

@zalun
Last active December 11, 2015 18:19
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 zalun/4640534 to your computer and use it in GitHub Desktop.
Save zalun/4640534 to your computer and use it in GitHub Desktop.
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/'
httpd.serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment