fix: 远程PG用TCP+密码连接, deploy_remote.sh用su postgres+socket

This commit is contained in:
selfrelease
2026-07-15 11:49:37 +08:00
parent 5aad0eb8f1
commit fc6ba087e9
2 changed files with 11 additions and 35 deletions
+1 -1
View File
@@ -56,7 +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 \
DB_HOST=127.0.0.1 DB_PORT=5432 DB_USER=postgres DB_PASSWORD=Why_701208 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