Trying to get python bridge to work.

This commit is contained in:
Raphaël Numbus
2026-05-17 14:21:23 +02:00
parent a8de439ece
commit df5132e97a
2 changed files with 4 additions and 6 deletions
+2 -1
View File
@@ -12,6 +12,8 @@ CONFIG_DIR = "config/"
SIGNALS_DIR = "signal/"
### <-- Variables
os.chdir(web/)
class BridgeHandler(http.server.SimpleHTTPRequestHandler):
def do_GET(self):
# Route for logs: /logs?type=out or /logs?type=err
@@ -51,5 +53,4 @@ class BridgeHandler(http.server.SimpleHTTPRequestHandler):
self.end_headers()
with open(os.path.join(SIGNALS_DIR, ".deploy_signal"), "w") as f: f.write("1")
os.chdir(../)
http.server.HTTPServer(('localhost', 8088), BridgeHandler).serve_forever()