mirror of
https://gitee.com/goploy/goploy.git
synced 2024-11-29 18:57:59 +08:00
update install guide
This commit is contained in:
parent
dae371d96c
commit
3be2e24806
21
README.md
21
README.md
@ -68,8 +68,20 @@ Goploy is commonly used for:
|
||||
- LDAP
|
||||
|
||||
## Install
|
||||
1. Install mysql
|
||||
2. Download the latest release
|
||||
|
||||
via [release](https://github.com/zhenorzz/goploy/releases)
|
||||
|
||||
or build from tag
|
||||
```
|
||||
git clone https://github.com/zhenorzz/goploy.git
|
||||
cd ./goploy
|
||||
git checkout -b tagname
|
||||
cd ./web
|
||||
npm install && npm run build
|
||||
cd ../
|
||||
go build -o goploy cmd/server/main.go
|
||||
|
||||
```
|
||||
|
||||
## Use
|
||||
1. Run ./goploy or goploy.exe or goploy.mac
|
||||
@ -87,8 +99,9 @@ Goploy is commonly used for:
|
||||
1. Install go >= 1.16
|
||||
2. go mod required
|
||||
3. edit goploy.toml `cp goploy.example.toml goploy.toml`
|
||||
4. run `go run main.go --asset-dir=./` (need build [Frontend](#Frontend))
|
||||
5. use gin (hot reload)
|
||||
4. build [Frontend](#Frontend)
|
||||
5. run `go run main.go --asset-dir=./`
|
||||
6. use gin (hot reload)
|
||||
|
||||
## Frontend
|
||||
1. `cd web`
|
||||
|
@ -67,8 +67,20 @@ Goploy 用于:
|
||||
- LDAP
|
||||
|
||||
## 安装
|
||||
1. 安装mysql
|
||||
2. 下载最新的release
|
||||
|
||||
下载 [release](https://github.com/zhenorzz/goploy/releases)
|
||||
|
||||
或者从tag构建
|
||||
```
|
||||
git clone https://github.com/zhenorzz/goploy.git
|
||||
cd ./goploy
|
||||
git checkout -b tagname
|
||||
cd ./web
|
||||
npm install && npm run build
|
||||
cd ../
|
||||
go build -o goploy cmd/server/main.go
|
||||
|
||||
```
|
||||
|
||||
## 使用
|
||||
1. 运行./goploy or goploy.exe or goploy.mac (运行不了可能需要 chmod a+x, 再不行就发issue或加群)
|
||||
@ -86,8 +98,9 @@ Goploy 用于:
|
||||
1. 安装go,必须是1.16以上
|
||||
2. 项目使用 go mod 管理
|
||||
3. 修改 goploy.toml `cp goploy.example.toml goploy.toml`
|
||||
4. 运行 `go run main.go --asset-dir=./` (需要编译一次前端 [前端开发说明](#前端开发说明))
|
||||
5. 或者使用 gin(可以热更新代码,改变就生效)
|
||||
4. 需要编译一次前端 [前端开发说明](#前端开发说明)
|
||||
5. 运行 `go run main.go --asset-dir=./`
|
||||
6. 或者使用 gin(可以热更新代码,改变就生效)
|
||||
|
||||
## 前端开发说明
|
||||
1. `cd web`
|
||||
|
Loading…
Reference in New Issue
Block a user