post: 从 NAS 发布的第一篇博客

This commit is contained in:
虾姐 2026-07-31 15:49:45 +08:00
parent 69e0dad5ae
commit f3a5abbbc8

View File

@ -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 管理博客的链路完全打通了** 🎉