Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

arcturus-weather/web

Repository files navigation

本地开发

安装依赖

pnpm install

环境变量

根目录下新建 .env 文件

VUE_QWEATHER_KEY=xxx # 和风天气

VUE_QWEATHER_ID=xxx # 和风天气 publicID

VUE_CAIYUN_KEY=xxx # 彩云天气

VUE_QQMAP_KEY=xxx # 腾讯地图

VUE_SERVER_BASEURL=api # 小冰天气后端地址

运行

quasar dev

打包

quasar build

启用 sorcemap

quasar build --debug

部署

Netlify

image-20230114094426588

image-20230114094657770

image-20230114094231790

环境变量的填写需要在部署之前, 否则不会生效

docker

docker build -t weather-image .
docker run -p 80:80 --name weather weather-image