From 447c067fa52d8b18a5fab039a431a674cd25e88f Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 21 Oct 2019 15:07:54 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=A1=A5=E8=B6=B3=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "deploy/docs/Docker\351\203\250\347\275\262.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/deploy/docs/Docker\351\203\250\347\275\262.md" "b/deploy/docs/Docker\351\203\250\347\275\262.md" index d20a640..f4316f0 100644 --- "a/deploy/docs/Docker\351\203\250\347\275\262.md" +++ "b/deploy/docs/Docker\351\203\250\347\275\262.md" @@ -99,7 +99,7 @@ $ sudo docker-compose ps ![](http://tcloud-static.oss-cn-beijing.aliyuncs.com/tcloud_git/kong-1.png) 成功后,进入SNAPSHOT页面,点击IMPORT FROM FILE,选择我们的`kong.json`文件,并进入DETAILS中RESTORE,全选导入,可能会出错,再执行一次即可,此时我们的网关服务已经运行完成,地址为`http://localhost:9000` -ps: 数据库初始化文件是init/init.sql,可以通过`sudo docker-compose down -v`再`sudo docker-compose up -d`来重新初始化数据库 +ps: 数据库初始化文件是init/init.sql,可以通过`sudo docker-compose down -v`再删除`volume/mysql`挂载目录之后,`sudo docker-compose up -d`来重新初始化数据库 ### 3、部署前端 From ac9ce6e38f957919921d1346154b9f9d9a712b9f Mon Sep 17 00:00:00 2001 From: "ace.wang" <851156827@qq.com> Date: Tue, 22 Oct 2019 14:37:22 +0800 Subject: [PATCH 2/3] =?UTF-8?q?Create=20=E4=BA=91=E7=9C=9F=E6=9C=BA?= =?UTF-8?q?=E9=83=A8=E7=BD=B2.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\237\346\234\272\351\203\250\347\275\262.md" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "deploy/docs/\344\272\221\347\234\237\346\234\272\351\203\250\347\275\262.md" diff --git "a/deploy/docs/\344\272\221\347\234\237\346\234\272\351\203\250\347\275\262.md" "b/deploy/docs/\344\272\221\347\234\237\346\234\272\351\203\250\347\275\262.md" new file mode 100644 index 0000000..6a2cb20 --- /dev/null +++ "b/deploy/docs/\344\272\221\347\234\237\346\234\272\351\203\250\347\275\262.md" @@ -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 From fee59418a3cb7b4fca31664df587b5e273617cf8 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 22 Oct 2019 15:27:14 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9localconfig=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE=E5=BA=93=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/local_config.py | 2 +- local_config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/local_config.py b/deploy/local_config.py index fb0644f..c73e717 100644 --- a/deploy/local_config.py +++ b/deploy/local_config.py @@ -4,7 +4,7 @@ SERVER_ENV = 'dev' # SQL 连接字符串 -SQLALCHEMY_DATABASE_URI = 'mysql://username:password@192.168.0.100:3306/tcloud?charset=utf8' +SQLALCHEMY_DATABASE_URI = 'mysql://root:tc123456@mysql:3306/demo?charset=utf8' # 密钥相关 SECRET = '####' diff --git a/local_config.py b/local_config.py index e2b8d11..f1ed4a1 100755 --- a/local_config.py +++ b/local_config.py @@ -4,7 +4,7 @@ SERVER_ENV = 'dev' # SQL 连接字符串 -SQLALCHEMY_DATABASE_URI = 'mysql://root:tc123456@mysql:3306/demo?charset=utf8' +SQLALCHEMY_DATABASE_URI = 'mysql://:@:/?charset=utf8' # 密钥相关 SECRET = '####'