guanghulab/deploy/nginx/fix-server.sh
Guanghu Domestic Migration d1e47f4565
Some checks are pending
自动更新代码和重启 / update-and-restart (push) Waiting to run
CI检查 + 自动部署 / check (push) Waiting to run
CI检查 + 自动部署 / deploy (push) Blocked by required conditions
重启聊天服务 / restart (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

9 lines
315 B
Bash

#!/bin/bash
cd /data/guanghulab/repo
git fetch origin 2>/dev/null
git reset --hard origin/main 2>/dev/null
cp homepage/fetch_train.py /opt/guanghulab-repo/homepage/fetch_train.py 2>/dev/null
cd /opt/guanghulab-repo/homepage && python3 fetch_train.py 2>/dev/null
pm2 restart guanghulab-mcp-server 2>/dev/null
exit 0