From ef223b6c057b1a80642221499b8265d75d6906e6 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Sun, 18 Dec 2022 15:44:45 +0800 Subject: [PATCH] =?UTF-8?q?docs(README.md):=20=E9=A1=B9=E7=9B=AE=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E8=AF=B4=E6=98=8E=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: f46ad212affef78bcebf3eb38b380744847a2c68 --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5fbb8e40..09de52e5 100644 --- a/README.md +++ b/README.md @@ -71,9 +71,19 @@ ## 项目启动 -1. npm install -2. npm run dev -3. 访问 [http://localhost:3000](http://localhost:3000) +1. 安装依赖 + + ```bash + npm install + ``` +2. 启动运行 + + ```bash + npm run dev + ``` +3. 访问测试 + + 浏览器访问: [http://localhost:3000](http://localhost:3000) ## 项目部署 @@ -83,11 +93,11 @@ npm run build:prod ``` - 生成的静态文件位于项目根目录 dist 文件夹下 + 生成的静态文件位于项目根目录 `dist` 文件夹下 - 上传文件 - 创建 `/mnt/nginx/html` 目录,将打包生成 dist 下的所有文件拷贝至此工作目录下 + 创建 `/mnt/nginx/html` 目录,将打包生成 `dist` 下的所有文件拷贝至此工作目录下 - nginx.cofig 配置