Commit e9a66953 by tingweiwang

功能开关配置

1 parent 0cd6076e
Showing with 9 additions and 0 deletions
......@@ -21,6 +21,10 @@ kpl_db_name=kpl #平台数据库名字,默认不更改
quota_db_name=quota #平台quota数据库,默认不更改
kpl_service_id=kpl3 #默认不更改
kpl_realy_path=kpl #默认不更改
###############功能开关####################
iot_boolean=false
grafana_boolean=false
mqtt_host= #192.168.1.32:1883 ,如果iot功能关闭,此处可以不做配置
###############################修改后端app.yaml################################
sudo sed -i s#redis_host#$redis_host#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#mysql_host#$mysql_host#g `find $config_workspace -type f -name "*.yaml"`
......@@ -40,3 +44,8 @@ sudo sed -i s#kpl_db_name#$kpl_db_name#g `find $config_workspace -type f -name "
sudo sed -i s#quota_db_name#$quota_db_name#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_service_id#$kpl_service_id#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_realy_path#$kpl_realy_path#g `find $config_workspace -type f -name "*.yaml"`
###########################功能开关配置####################################
sudo sed -i s#iot_boolean#$iot_boolean#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#mqtt_host#$mqtt_host#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#grafana_boolean#$grafana_boolean#g `find $config_workspace -type f -name "*.yaml"`
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!