This commit is contained in:
colben 2021-11-14 15:58:03 +08:00
parent 1e344dc204
commit fc619c011e

View File

@ -16,7 +16,7 @@
git clone https://github.com/olOwOlo/hugo-theme-even.git themes/even
```
- 本地编译,生成页面
- 本地编译,生成页面,仅用于本地调试,不会提交
```bash
hugo --baseURL="https://www.colben.cn/"
```
@ -28,12 +28,6 @@
```
## 发布
- 进入 gitea 容器,安装 hugo
```bash
apk update
apk add --no-cache hugo
```
- 配置本仓库的 post-receive 钩子,内容如下
```bash
set -euo pipefail
@ -48,6 +42,8 @@
- 克隆本仓库的前端目录
```bash
docker exec -ti gitea /bin/bash # 进入 gitea 容器
apk update
apk add --no-cache hugo # 安装 hugo
chown gitea.www-data /html
su - gitea
cd /html