]> git.zarvox.org Git - shortlog.git/blob - shortlog-testing.py
Don't serve .gitignore (or other non-entry files)
[shortlog.git] / shortlog-testing.py
1 #!/usr/bin/python3
2
3 import shortlog
4
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...")
10         httpd.serve_forever()
11
12     #import cherrypy
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
19     #server.subscribe()
20     #cherrypy.engine.start()
21     #cherrypy.engine.block()