Repo Sync
同步 GitHub 仓库并部署到 nginx。
When to Use
| 场景 | 动作 |
|---|---|
| 用户说 "部署" / "更新页面" | git pull → cp → reload |
| 用户说 "同步代码" | git pull |
| 部署新投注方案后 | cp html → reload |
执行流程
cd ~/world-cup && git pull origin main
cp 世界杯预测.html index.html
nginx -s reload
验证:curl -sI http://localhost:8080/ | head -5
注意事项
- 确保
index.html与世界杯预测.html始终同步 - nginx 以 root 用户运行,配置在
/etc/nginx/conf.d/worldcup.conf