refine the step of manually deploying
This commit is contained in:
parent
45be9b9064
commit
335e4337e5
@ -134,12 +134,12 @@ The initial account username is `root` and password is `123456`.
|
|||||||
git clone https://github.com/songquanpeng/one-api.git
|
git clone https://github.com/songquanpeng/one-api.git
|
||||||
|
|
||||||
# Build the frontend
|
# Build the frontend
|
||||||
cd one-api/web
|
cd one-api/web/default
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
# Build the backend
|
# Build the backend
|
||||||
cd ..
|
cd ../..
|
||||||
go mod download
|
go mod download
|
||||||
go build -ldflags "-s -w" -o one-api
|
go build -ldflags "-s -w" -o one-api
|
||||||
```
|
```
|
||||||
|
@ -135,12 +135,12 @@ sudo service nginx restart
|
|||||||
git clone https://github.com/songquanpeng/one-api.git
|
git clone https://github.com/songquanpeng/one-api.git
|
||||||
|
|
||||||
# フロントエンドのビルド
|
# フロントエンドのビルド
|
||||||
cd one-api/web
|
cd one-api/web/default
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
# バックエンドのビルド
|
# バックエンドのビルド
|
||||||
cd ..
|
cd ../..
|
||||||
go mod download
|
go mod download
|
||||||
go build -ldflags "-s -w" -o one-api
|
go build -ldflags "-s -w" -o one-api
|
||||||
```
|
```
|
||||||
|
@ -174,12 +174,12 @@ docker-compose ps
|
|||||||
git clone https://github.com/songquanpeng/one-api.git
|
git clone https://github.com/songquanpeng/one-api.git
|
||||||
|
|
||||||
# 构建前端
|
# 构建前端
|
||||||
cd one-api/web
|
cd one-api/web/default
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
# 构建后端
|
# 构建后端
|
||||||
cd ..
|
cd ../..
|
||||||
go mod download
|
go mod download
|
||||||
go build -ldflags "-s -w" -o one-api
|
go build -ldflags "-s -w" -o one-api
|
||||||
````
|
````
|
||||||
|
Loading…
Reference in New Issue
Block a user