docs: add missing manual deployment documentation (#7)

* docs: add missing manual deployment documentation

* docs: fix manual deployment steps

* docs: update readme

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
This commit is contained in:
Shiqi Mei 2023-04-24 20:55:22 +08:00 committed by GitHub
parent 918ba60802
commit 336c03a125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,14 @@ _✨ All in one 的 OpenAI 接口,整合各种 API 访问方式,开箱即用
1. 从 [GitHub Releases](https://github.com/songquanpeng/one-api/releases/latest) 下载可执行文件或者从源码编译:
```shell
git clone https://github.com/songquanpeng/one-api.git
# 构建前端
cd one-api/web
npm install
npm run build
# 构建后端
cd ..
go mod download
go build -ldflags "-s -w" -o one-api
````