针对微信小程序的后台经过5天测试,具备一定的稳定性,提交版本用于保存

This commit is contained in:
qcloud
2025-07-27 21:37:28 +08:00
parent 44cb7c0dca
commit e6644a5262
18 changed files with 3147 additions and 376 deletions

View File

@@ -20,8 +20,10 @@ export PYTHONPATH=.:$PYTHONPATH
# 3. 使用nohup运行并防止终端退出影响
echo "➜ 启动应用进程..."
nohup python app/main.py > app.log 2>&1 &
#nohup python app/main.py > app.log 2>&1 &
#只能使用1个worker共享全局变量使用会有问题
nohup uvicorn app.main:app --host 0.0.0.0 --port 9580 --workers 4 > app.log 2>&1 &
# 4. 验证新进程
sleep 3 # 等待进程启动
NEW_PID=$(lsof -ti :${PORT})