修复中控

This commit is contained in:
dekun
2026-05-25 13:43:22 +08:00
parent 9c67a643a2
commit 1347441bb3
2 changed files with 7 additions and 2 deletions
+5 -1
View File
@@ -795,7 +795,11 @@ async def api_trade_removed_get(exchange_id: str, preview_id: str = ""):
def main(): def main():
import uvicorn import uvicorn
uvicorn.run(app, host=HUB_HOST, port=HUB_PORT, log_level="warning", access_log=False) print(
f"manual-trading-hub start build={HUB_BUILD} listen={HUB_HOST}:{HUB_PORT}",
flush=True,
)
uvicorn.run(app, host=HUB_HOST, port=HUB_PORT, log_level="info", access_log=False)
if __name__ == "__main__": if __name__ == "__main__":
+2 -1
View File
@@ -24,4 +24,5 @@ if [[ -f "${HUB_DIR}/.env" ]]; then
} }
fi fi
exec "${VENV_PY}" "${HUB_DIR}/hub.py" echo "run_hub: python=${VENV_PY} cwd=${HUB_DIR} PYTHONPATH=${PYTHONPATH}" >&2
exec "${VENV_PY}" -u "${HUB_DIR}/hub.py"