|
|
|
@ -35,7 +35,6 @@ def hello_world():
|
|
|
|
out = ""
|
|
|
|
out = ""
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
log_path = f"/home/rocker/containers/{_id}/upper/logs/log"
|
|
|
|
log_path = f"/home/rocker/containers/{_id}/upper/logs/log"
|
|
|
|
print(f"读取: {log_path}")
|
|
|
|
|
|
|
|
with open(log_path) as f:
|
|
|
|
with open(log_path) as f:
|
|
|
|
out = f.read()
|
|
|
|
out = f.read()
|
|
|
|
except Exception as e:
|
|
|
|
except Exception as e:
|
|
|
|
@ -47,4 +46,4 @@ def hello_world():
|
|
|
|
return {"msg": out, code: code, "id": _id}
|
|
|
|
return {"msg": out, code: code, "id": _id}
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
if __name__ == "__main__":
|
|
|
|
app.run(host='0.0.0.0', port=8011, threaded=True)
|
|
|
|
app.run(host="0.0.0.0", port=8011, threaded=True)
|