fix: server.py 支持环境变量配置DB连接 + deploy_remote.sh 适配远程PG15端口5432 + deploy.sh 设置DB环境变量

This commit is contained in:
selfrelease
2026-07-15 11:41:07 +08:00
parent 2b0c35220a
commit 5aad0eb8f1
3 changed files with 40 additions and 18 deletions
+1
View File
@@ -56,6 +56,7 @@ ssh -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} "
fi
# 启动新进程
cd ${REMOTE_DEMO}
DB_HOST=127.0.0.1 DB_PORT=5432 DB_USER=postgres DB_NAME=wxchat_sales \
nohup /usr/bin/python3 -m uvicorn web.server:app --host 127.0.0.1 --port 8770 \
> ${REMOTE_DEMO}/web.log 2>&1 &
sleep 2