webserver: Add example url to startup.

This commit is contained in:
Andrew Hamilton 2021-12-05 19:46:45 +10:00
parent 1d8d497fff
commit a6237ca16a

View file

@ -96,7 +96,7 @@ def make_summary_page(project_name, summary):
def run(server_class=http.server.HTTPServer, handler_class=Webserver, port=8080): def run(server_class=http.server.HTTPServer, handler_class=Webserver, port=8080):
server_address = ("", port) server_address = ("", port)
httpd = server_class(server_address, handler_class) httpd = server_class(server_address, handler_class)
print("Starting httpd…") print(f"Starting httpd… See http://localhost:{port}/")
httpd.serve_forever() httpd.serve_forever()