summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-09-28 16:41:00 (GMT)
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-09-28 16:41:00 (GMT)
commit9171b1b810254054992e370ab3fd82b2fe9138e9 (patch)
tree54e5a8ff5c27f862adf6e57dea151b3c60502997
parente9aaaaba7425cfb127954327460afb8a4e189f40 (diff)
downloadciat-ui-9171b1b810254054992e370ab3fd82b2fe9138e9.tar.gz
Add python script to serve the web
-rw-r--r--serve.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/serve.py b/serve.py
new file mode 100644
index 0000000..e0dbdec
--- /dev/null
+++ b/serve.py
@@ -0,0 +1,16 @@
+#!/usr/bin/python
+
+import SimpleHTTPServer
+import SocketServer
+
+PORT = 80
+
+Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
+Handler.extensions_map.update({
+ '.webapp': 'application/x-web-app-manifest+json',
+ });
+
+httpd = SocketServer.TCPServer(("", PORT), Handler)
+
+print "Serving at port", PORT
+httpd.serve_forever()