之前存在106.52上的仓库被重新初始化了,同时增加了测试账号的兼容,测试账号hxbtest001,...hxbtest005

This commit is contained in:
qcloud
2025-09-01 20:09:26 +08:00
parent e6644a5262
commit 8d90798647
16 changed files with 25420 additions and 157 deletions

View File

@@ -0,0 +1,25 @@
# 1. 终止占用9580端口的进程
PORT=9580
echo "➜ 正在检查端口 ${PORT} 的占用情况..."
PID=$(lsof -ti :${PORT})
if [ -n "$PID" ]; then
echo "➜ 发现占用端口的进程(PID: ${PID}),正在终止..."
kill -9 $PID
sleep 2 # 等待进程完全终止
echo "✓ 已终止进程"
else
echo "✓ 端口 ${PORT} 未被占用"
fi
source venv/bin/activate
export PYTHONPATH=.:$PYTHONPATH
#python app/main.py
# 高性能启动 FastAPI
uvicorn app.main:app \
--host 0.0.0.0 \
--port $PORT \
--workers 4 \
--timeout-keep-alive 65 \
--no-access-log