From 30372c2e70c9b79d5bdee8953343befd3792ab41 Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Thu, 16 Feb 2023 13:42:19 +0800 Subject: [PATCH] chore: update README --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 14cc4bd..7fcfe19 100644 --- a/README.md +++ b/README.md @@ -95,8 +95,12 @@ pnpm build pnpm prod ``` +PS: 不进行打包,直接在服务器上运行 `pnpm start` 也可 + ## 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 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 ``` -PS: 不进行打包,直接在服务器上运行 `pnpm start` 也可 - ### 网页 + 根目录下运行以下命令,然后将 `dist` 文件夹复制到你的托管服务器上 +[参考信息](https://cn.vitejs.dev/guide/static-deploy.html#building-the-app) + ```shell pnpm build ```