Skip to content

Commit

Permalink
fix: tweak live docs server. (#5293)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioga authored Oct 21, 2022
1 parent b3ff34c commit 13760a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,12 @@ def handle(self, event):
long_poller = LongPoller()

address = ("localhost", 1234)
RequestHandler = make_request_handler(long_poller, directory="site")
RequestHandler = make_request_handler(long_poller, directory="site/html/")
server = http.server.ThreadingHTTPServer(address, RequestHandler)

server_thread = threading.Thread(target=server.serve_forever, args=[0.1])
server_thread.start()
print(f"Listening on http://localhost:{address[1]}")

rebuilder = Rebuilder()
rebuilder.start()
Expand Down

0 comments on commit 13760a3

Please sign in to comment.