--- /dev/null
+#!/usr/bin/python3
+
+import shortlog
+
+if __name__ == "__main__":
+ # cherrypy WSGI container
+ from wsgiref.simple_server import make_server
+ with make_server('127.0.0.1', 5000, shortlog.application) as httpd:
+ print("Serving on port 5000...")
+ httpd.serve_forever()
+
+ #import cherrypy
+ #cherrypy.tree.graft(shortlog.application, "/")
+ #cherrypy.server.unsubscribe()
+ #server = cherrypy._cpserver.Server()
+ #server.socket_host = "127.0.0.1"
+ #server.socket_port= 5000
+ #server.thread_pool = 4
+ #server.subscribe()
+ #cherrypy.engine.start()
+ #cherrypy.engine.block()
if __name__ == "__main__":
# CGI interface
CGIHandler().run(application)
-
- # cherrypy WSGI container
- #import cherrypy
- #cherrypy.tree.graft(application, "/")
- #cherrypy.server.unsubscribe()
- #server = cherrypy._cpserver.Server()
- #server.socket_host = "127.0.0.1"
- #server.socket_port= 5000
- #server.thread_pool = 4
- #server.subscribe()
- #cherrypy.engine.start()
- #cherrypy.engine.block()