5 if __name__ == "__main__":
6 # cherrypy WSGI container
7 from wsgiref.simple_server import make_server
8 with make_server('127.0.0.1', 5000, shortlog.application) as httpd:
9 print("Serving on port 5000...")
13 #cherrypy.tree.graft(shortlog.application, "/")
14 #cherrypy.server.unsubscribe()
15 #server = cherrypy._cpserver.Server()
16 #server.socket_host = "127.0.0.1"
17 #server.socket_port= 5000
18 #server.thread_pool = 4
20 #cherrypy.engine.start()
21 #cherrypy.engine.block()