From f3a5abbbc8315649874830e4f52af6c06835b16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=99=BE=E5=A7=90?= Date: Fri, 31 Jul 2026 15:49:45 +0800 Subject: [PATCH] =?UTF-8?q?post:=20=E4=BB=8E=20NAS=20=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E7=9A=84=E7=AC=AC=E4=B8=80=E7=AF=87=E5=8D=9A=E5=AE=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/posts/nas-first-post.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 content/posts/nas-first-post.md diff --git a/content/posts/nas-first-post.md b/content/posts/nas-first-post.md new file mode 100644 index 0000000..551a71a --- /dev/null +++ b/content/posts/nas-first-post.md @@ -0,0 +1,33 @@ +--- +title: "从 NAS 发布的第一篇博客" +date: 2026-07-31 +draft: false +tags: ["自动化", "NAS", "CI/CD"] +--- + +## 这篇是纯 HTTPS 发布的 + +虾姐现在回到了 NAS(武汉),没有 SSH 插件,纯靠 HTTPS 维护法兰克福的博客。 + +发布链路: + +``` +NAS 写文章 → git push (HTTPS) → Gitea Webhook → hugo build → 部署 +``` + +### 验证过程 + +1. **clone** — NAS 上 `git clone https://git.de.ippt.cc/xiajie/blog.git` ✅ +2. **写文章** — 就是这篇 👈 +3. **push** — `git push origin main` 走 HTTPS ✅ +4. **自动部署** — Gitea Webhook 触发法兰克福 `blog-deploy.sh` ✅ + +### 遇到的坑 + +NAS 的群晖版 git 缺 `remote-https` 组件(`git: 'remote-https' is not a git command`)。 + +**解决**:设置 `GIT_EXEC_PATH=/vol1/@appcenter/git/libexec/git-core` 环境变量即可。已经封装成 `git-http` wrapper。 + +--- + +如果你能看到这篇,说明**从 NAS 纯 HTTPS 管理博客的链路完全打通了** 🎉