|
|
|
@ -1,6 +1,10 @@
|
|
|
|
|
<h1 align="center"><a href="https://github.com/halo-dev" target="_blank">halo-admin</a></h1>
|
|
|
|
|
<p align="center">
|
|
|
|
|
<a href="https://halo.run" target="_blank" rel="noopener noreferrer">
|
|
|
|
|
<img width="100" src="https://halo.run/logo" alt="Halo logo" />
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
> halo-admin 是 [Halo](https://github.com/halo-dev/halo) 的管理端项目。
|
|
|
|
|
> halo-admin 是 [Halo](https://github.com/halo-dev/halo) 的管理端项目。目前 Halo 的运行包内已经包含了构建好的页面,所以如果你不需要额外部署 admin,你无需做任何操作。
|
|
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
|
<a href="https://www.npmjs.com/package/halo-admin"><img alt="npm release" src="https://img.shields.io/npm/v/halo-admin?style=flat-square"/></a>
|
|
|
|
@ -12,40 +16,22 @@
|
|
|
|
|
|
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
|
|
## 部署方案
|
|
|
|
|
|
|
|
|
|
目前 Halo 的运行包内已经包含了构建好的页面,所以如果你不需要额外部署 admin,你无需做任何操作。
|
|
|
|
|
|
|
|
|
|
### 独立部署
|
|
|
|
|
|
|
|
|
|
#### 方式一
|
|
|
|
|
|
|
|
|
|
直接下载最新构建好的版本,然后部署即可。
|
|
|
|
|
|
|
|
|
|
https://github.com/halo-dev/halo-admin/releases
|
|
|
|
|
|
|
|
|
|
#### 方式二
|
|
|
|
|
|
|
|
|
|
1、克隆项目:
|
|
|
|
|
## 开发环境运行
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
git clone https://github.com/halo-dev/halo-admin
|
|
|
|
|
npm install -g pnpm
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
2、检出最新版本:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
git checkout v1.4.15
|
|
|
|
|
pnpm install
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
3、打包构建:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
npm install -g pnpm
|
|
|
|
|
pnpm serve
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
pnpm install
|
|
|
|
|
## 生产构建
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
pnpm build
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
最后,得到 dist 文件夹之后就可以单独部署了。
|
|
|
|
|