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