From 49e5ca1f16c5e274b27b8fcd9994af2f33d7fe6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=B3=E5=85=89=E5=B0=91=E5=B9=B4?= <849317537@qq.com> Date: Thu, 12 Sep 2024 09:00:06 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/service/client.py | 2 +- test/service/server.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/service/client.py b/test/service/client.py index 034ff4f..1c2ceb3 100644 --- a/test/service/client.py +++ b/test/service/client.py @@ -9,7 +9,7 @@ print(os.environ) if __name__ == "__main__": import requests - url = "http://127.0.0.1:8011" + url = "http://code.quant.cm" resp = requests.post(url, json={"code": code}) print(resp.json()["msg"]) diff --git a/test/service/server.py b/test/service/server.py index 9518c66..e22532e 100644 --- a/test/service/server.py +++ b/test/service/server.py @@ -35,7 +35,6 @@ def hello_world(): out = "" try: log_path = f"/home/rocker/containers/{_id}/upper/logs/log" - print(f"读取: {log_path}") with open(log_path) as f: out = f.read() except Exception as e: @@ -47,4 +46,4 @@ def hello_world(): return {"msg": out, code: code, "id": _id} if __name__ == "__main__": - app.run(host='0.0.0.0', port=8011, threaded=True) \ No newline at end of file + app.run(host="0.0.0.0", port=8011, threaded=True) \ No newline at end of file