From fc619c011e6829bd8518152182e62898e58aa5f0 Mon Sep 17 00:00:00 2001 From: colben Date: Sun, 14 Nov 2021 15:58:03 +0800 Subject: [PATCH] update --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 419f716..99ae903 100644 --- a/README.md +++ b/README.md @@ -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