Skip to content

Commit

Permalink
更新部署说明
Browse files Browse the repository at this point in the history
  • Loading branch information
sumingyd authored Feb 1, 2023
1 parent 50adca4 commit b5ab4ac
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -31,12 +31,22 @@

### 部署

> 首先安装个 [node.js](https://nodejs.org/zh-cn/) 的环境
> 然后管理员权限运行终端,并`cd`到 项目目录中
> 在终端中输入:
```bash
# 安装依赖
yarn install

# 预览
yarn dev

#构建
yarn build
```
> 构建完成后,可将 `dist` 文件夹下的文件上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署
> 构建完成后,html项目会在`dist`目录中生成,可将 `dist` 文件夹下的文件上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署
### 天气

天气及地区获取需要 `高德开放平台` 相关 API

0 comments on commit b5ab4ac

Please sign in to comment.