Migrate Hugo blog source to local git server

Update git remote and sync script to use local git server
at fukun.net instead of GitHub
This commit is contained in:
2026-05-24 22:51:16 +08:00
parent f2dd32d468
commit 00bb034eca
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -7,20 +7,20 @@
# 适用: Ubuntu 24.04, Hugo 0.161+
#
# 前置条件:
# - ~/hugo-blog 已 git clone 且 remote 指向 github.com:fukunee/Hugo
# - ~/hugo-blog 已 git clone 且 remote claw 指向 git@fukun.net:/data/git-repos/Hugo.git
# - hugo 已安装
# - nginx 指向 ~/hugo-blog/public
#
# 流程:
# 1. git pull — 拉取最新文章和配置
# 2. hugo build — 重建静态页面到 public/
# 1. git pull claw master — 从本地 git 服务器拉取
# 2. hugo build — 重建静态页面到 public/
# ============================================================
set -e
cd ~/hugo-blog
echo ">>> git pull..."
git pull
echo ">>> git pull claw master..."
git pull claw master
echo ">>> hugo build..."
hugo --minify