forked from grizz622/TcloudServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from bigbaser/dev-2.2.0
Dev 2.2.0
- Loading branch information
Showing
4 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
SERVER_ENV = 'dev' | ||
|
||
# SQL 连接字符串 | ||
SQLALCHEMY_DATABASE_URI = 'mysql://username:[email protected]:3306/tcloud?charset=utf8' | ||
SQLALCHEMY_DATABASE_URI = 'mysql://root:tc123456@mysql:3306/demo?charset=utf8' | ||
|
||
# 密钥相关 | ||
SECRET = '####' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters