docs: add missing manual deployment documentation

This commit is contained in:
Shiqi Mei 2023-04-24 20:38:26 +08:00 committed by GitHub
parent c0bb2338de
commit bc25f157f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,9 +71,15 @@ _✨ All in one 的 OpenAI 接口,整合各种 API 访问方式,开箱即用
git clone https://github.com/songquanpeng/one-api.git
go mod download
go build -ldflags "-s -w" -o one-api
# 构建 Web 产物
cd web
npm install
npm run build
````
2. 运行:
```shell
cd .. # 回到项目根目录 `one-api`
chmod u+x one-api
./one-api --port 3000 --log-dir ./logs
```