Skip to content

Commit

Permalink
Create 云真机部署.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshaoce authored Oct 22, 2019
1 parent 447c067 commit ac9ce6e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deploy/docs/云真机部署.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
1.搭建STF服务 此服务不再赘述,[参考文档](https://www.cnblogs.com/hanxiaobei/p/9772553.html)

2.搭建好后,接入安卓设备

3.打开STF前端页面,本地部署的话 地址是localhost:7100点击设置选择按键点击+号,新增accesstoken

3.将stf服务地址配置进数据库demo库内config表module=stf的3个参数修改为{"URL":"http://192.168.25.22:7100/api/v1/devices,headers:{Authorization:" "Bearer 4bce26f231fe4ffea92ac2818380d81596476fd3cf8840439c2d11df3cce1be3"}}
url 是stf本地部署的服务地址,Authorization 是 Bearer+accesstoken(Bearer与accesstoken 之间有空格)

5.修改前端项目Tcloud/config/prod.env.js:新增参数STF_URL:'"http://192.168.25.22:7100"'

6.重新部署前端项目在Tcloud目录下执行npm run dev

7.重新打开/刷新前端项目,云真机搭建完成


需要图文教程移步https://testerhome.com/topics/20960

0 comments on commit ac9ce6e

Please sign in to comment.