docs(README.md): 项目启动说明优化
Former-commit-id: f46ad212affef78bcebf3eb38b380744847a2c68
This commit is contained in:
20
README.md
20
README.md
@@ -71,9 +71,19 @@
|
|||||||
|
|
||||||
## 项目启动
|
## 项目启动
|
||||||
|
|
||||||
1. npm install
|
1. 安装依赖
|
||||||
2. npm run dev
|
|
||||||
3. 访问 [http://localhost:3000](http://localhost:3000)
|
```bash
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
2. 启动运行
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run dev
|
||||||
|
```
|
||||||
|
3. 访问测试
|
||||||
|
|
||||||
|
浏览器访问: [http://localhost:3000](http://localhost:3000)
|
||||||
|
|
||||||
## 项目部署
|
## 项目部署
|
||||||
|
|
||||||
@@ -83,11 +93,11 @@
|
|||||||
npm run build:prod
|
npm run build:prod
|
||||||
```
|
```
|
||||||
|
|
||||||
生成的静态文件位于项目根目录 dist 文件夹下
|
生成的静态文件位于项目根目录 `dist` 文件夹下
|
||||||
|
|
||||||
- 上传文件
|
- 上传文件
|
||||||
|
|
||||||
创建 `/mnt/nginx/html` 目录,将打包生成 dist 下的所有文件拷贝至此工作目录下
|
创建 `/mnt/nginx/html` 目录,将打包生成 `dist` 下的所有文件拷贝至此工作目录下
|
||||||
|
|
||||||
- nginx.cofig 配置
|
- nginx.cofig 配置
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user