mirror of
https://github.com/halo-dev/docs.git
synced 2025-10-21 18:24:58 +00:00
docs: docs: update documentation for Halo 2.5 (#212)
为 Halo 2.5 更新文档。 /kind documentation ```release-note None ```
This commit is contained in:
@@ -28,7 +28,7 @@ git checkout v2.4.0
|
||||
```
|
||||
|
||||
:::tip
|
||||
请务必按照以上要求切换到最新的 tag,而不是直接使用 main 分支构建,main 分支是我们的开发分支。此文档以 `2.4.0` 为例,查看最新的 tag 可使用 `git tag --column` 查看。
|
||||
请务必按照以上要求切换到最新的 tag,而不是直接使用 main 分支构建,main 分支是我们的开发分支。此文档以 `2.5.0` 为例,查看最新的 tag 可使用 `git tag --column` 查看。
|
||||
:::
|
||||
|
||||
:::warning
|
||||
@@ -63,7 +63,7 @@ pnpm build
|
||||
|
||||
## 构建 Fat Jar
|
||||
|
||||
构建之前需要修改 `gradle.properties` 中的 `version` 为当前 tag 的版本号,如:`version=2.4.0`
|
||||
构建之前需要修改 `gradle.properties` 中的 `version` 为当前 tag 的版本号,如:`version=2.5.0`
|
||||
|
||||
```bash
|
||||
cd path/to/halo
|
||||
@@ -77,18 +77,18 @@ cd path/to/halo
|
||||
./gradlew clean build -x check
|
||||
```
|
||||
|
||||
构建完成之后,在 halo 项目下产生的 `application/build/libs/halo-2.4.0.jar` 即为构建完成的文件。
|
||||
构建完成之后,在 halo 项目下产生的 `application/build/libs/halo-2.5.0.jar` 即为构建完成的文件。
|
||||
|
||||
## 构建 Docker 镜像
|
||||
|
||||
在进行之前,请确保已经完成上述操作,最终需要确认在 halo 项目的 `application/build/libs/` 目录已经包含了 `halo-2.4.0.jar` 文件。
|
||||
在进行之前,请确保已经完成上述操作,最终需要确认在 halo 项目的 `application/build/libs/` 目录已经包含了 `halo-2.5.0.jar` 文件。
|
||||
|
||||
```bash
|
||||
cd path/to/halo
|
||||
```
|
||||
|
||||
```bash
|
||||
docker build -t halo-dev/halo:2.4.0 .
|
||||
docker build -t halo-dev/halo:2.5.0 .
|
||||
```
|
||||
|
||||
```bash
|
||||
|
Reference in New Issue
Block a user