Repo Sync

Sync world-cup repo from GitHub, update nginx-served HTML, and reload. Used when pulling latest changes or deploying updates.

piaoxuemoli Updated

File contents

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

piaoxuemoli/qoobeehermes/tree/main/hermes/skills/world-cup/repo-sync commit db82c28c8a

Frequently asked questions

npx skillmds@latest add piaoxuemoli/repo-sync-2