【update】 doc
This commit is contained in:
parent
3c96571801
commit
2b5392173c
22
src/部署上线/H5.md
Normal file
22
src/部署上线/H5.md
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
# H5
|
||||
|
||||
### 生产环境
|
||||
|
||||
```js
|
||||
npm run build:h5
|
||||
|
||||
或者
|
||||
|
||||
set NODE_ENV=production && quasar build -m pwa
|
||||
```
|
||||
|
||||
输出目录为当前环境下 dist/pwa/
|
||||
|
||||
### 测试环境
|
||||
|
||||
```js
|
||||
set NODE_ENV=development && quasar build -m pwa
|
||||
```
|
||||
|
||||
输出目录为当前环境下 dist/pwa/
|
51
src/部署上线/开发环境.md
Normal file
51
src/部署上线/开发环境.md
Normal file
@ -0,0 +1,51 @@
|
||||
|
||||
# 安卓
|
||||
|
||||
#### 第一步
|
||||
|
||||
```js
|
||||
npm run build
|
||||
|
||||
||
|
||||
|
||||
set NODE_ENV=prodiction && quasar build -m cordova -T android && node cmd/apk.js
|
||||
```
|
||||
|
||||
此时会在根目录dist/pwa目录
|
||||
|
||||
将此目录上传至服务器。 然后记录域名信息
|
||||
|
||||
#### 第二步
|
||||
|
||||
打开src-cordova/config.xml
|
||||
|
||||
```js
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<widget id="org.cordova.quasar.app" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
<name>Quasar App</name>
|
||||
<description>A Quasar Project</description>
|
||||
<author email="dev@cordova.apache.org" href="https://cordova.apache.org">
|
||||
Apache Cordova Team
|
||||
</author>
|
||||
<content src="index.html" />
|
||||
<allow-intent href="http://*/*" />
|
||||
<allow-intent href="https://*/*" />
|
||||
<allow-navigation href="about:*" />
|
||||
</widget>
|
||||
|
||||
```
|
||||
|
||||
|
||||
修改content标签 src为线上地址
|
||||
|
||||
然后执行根目录执行
|
||||
|
||||
```js
|
||||
yarn build:apk
|
||||
|
||||
||
|
||||
|
||||
cd src-cordova && cordova run android && node cmd/moveAPK.js
|
||||
```
|
||||
|
||||
将会在dist生成app-debug.apk
|
Loading…
Reference in New Issue
Block a user