chore: update README
This commit is contained in:
parent
6646695849
commit
30372c2e70
|
@ -95,8 +95,12 @@ pnpm build
|
||||||
pnpm prod
|
pnpm prod
|
||||||
```
|
```
|
||||||
|
|
||||||
|
PS: 不进行打包,直接在服务器上运行 `pnpm start` 也可
|
||||||
|
|
||||||
## Docker build & run
|
## Docker build & run
|
||||||
|
|
||||||
|
[参考信息](https://github.com/Chanzhaoyu/chatgpt-web/pull/33)
|
||||||
|
|
||||||
```
|
```
|
||||||
docker rm -f $(docker ps -a| grep marlkiller/chatgpt-web | awk '{print $1}')
|
docker rm -f $(docker ps -a| grep marlkiller/chatgpt-web | awk '{print $1}')
|
||||||
docker rmi $(docker images 'marlkiller/chatgpt-web' -q)
|
docker rmi $(docker images 'marlkiller/chatgpt-web' -q)
|
||||||
|
@ -105,11 +109,12 @@ docker build -t marlkiller/chatgpt-web .
|
||||||
docker run -p 1002:1002 marlkiller/chatgpt-web
|
docker run -p 1002:1002 marlkiller/chatgpt-web
|
||||||
```
|
```
|
||||||
|
|
||||||
PS: 不进行打包,直接在服务器上运行 `pnpm start` 也可
|
|
||||||
|
|
||||||
### 网页
|
### 网页
|
||||||
|
|
||||||
根目录下运行以下命令,然后将 `dist` 文件夹复制到你的托管服务器上
|
根目录下运行以下命令,然后将 `dist` 文件夹复制到你的托管服务器上
|
||||||
|
|
||||||
|
[参考信息](https://cn.vitejs.dev/guide/static-deploy.html#building-the-app)
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pnpm build
|
pnpm build
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue