Commit 1e3eca2d authored by qa_quantgroup's avatar qa_quantgroup

update

parent 118848b5
#!/bin/bash
ip=$1
branch_name=$2
date=`date "+%Y-%m-%d %H:%M:%S"`
function Git_branch(){
if [ -z $2 ]; then
echo "查看所有服务分支 $date"
expect -c "
set timeout 10
spawn ssh root@${ip}
expect \"]#\"
send \"for x in `find /home/quant_group/ -maxdepth 2 -name .git`;do cd $(dirname $x);echo $(dirname $x):;git branch | grep '*';done\r\"
set timeout -1
expect \"]#\"
send \"exit\r\"
expect eof;"
else
echo "查看服务$2的分支 $date"
expect -c "
set timeout 10
spawn ssh root@${ip}
expect \"]#\"
send \"cd /home/quant_group/$2\r\"
expect \"]#\"
send \"git branch\r\"
set timeout -1
expect \"]#\"
send \"exit\r\"
expect eof;"
fi
}
Git_branch $1 $2
\ No newline at end of file
......@@ -102,7 +102,7 @@ new pClass().init(true, "java", "7069", "", "notify", true, "fund_pay", "notify.
// ui----
new pClass().init(true, "ui", "7032", "", "op-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "运营系统-ui", "", "", "");
new pClass().init(true, "ui", "7040", "", "activity-ui", false, "QG", null, "src/app/config.js", "npm run build", "node7", 1, "活动中心-ui", "", "", "");
new pClass().init(true, "ui", "7040", "", "activity-ui", false, "QG", null, "src/app/config.js", "npm run qa", "node7", 1, "活动中心-ui", "", "", "");
new pClass().init(true, "ui", "7011", "financial.xyqb.com", "financial-system-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "财务系统-ui", "", "", "");
new pClass().init(true, "ui", "7030", "", "gyxd-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "广源小贷-ui", "", "");
new pClass().init(true, "ui", "7008", "off.xyqb.com", "offline-ui", false, "QG", null, "src/app/config/env.config.js", "npm run build", "node7", 1, "线下白条-ui", "", "", "");
......@@ -124,12 +124,12 @@ new pClass().init(false, "ui", "7061", "", "wind-control-op-ui", true, "ui", nul
new pClass().init(false, "ui", "7016", "", "flow-op-ui", true, "ui", null, "src/config/env.config.js", "npm run build", "node7", 1, "导流UI页面", "", "", "");
new pClass().init(false, "ui", "7051", "", "h5-ui", true, "ui", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "h5平台业务", "李长城", "", "");
new pClass().init(true, "ui", "7057", "", "ka-spider-center-ui", true, "ui", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "新版授信UI", "郑少文", "", "");
new pClass().init(true, "ui", "7067", "", "new-op-ui", true, "ui", null, "src/app/config/env.config.js", "npm run build", "node7", 1, "运营系统 vue", "孙小英", "", "");
new pClass().init(true, "ui", "7067", "", "new-op-ui", true, "ui", null, "src/config/env.config.js", "npm run build", "node7", 1, "运营系统 vue", "孙小英", "", "");
// node
new pClass().init(true, "node", "7018", "", "AppBackend", false, "QG", null, "config/environment/test.js", "forever start -a -s --uid AppBackend bin/www", null, 1, "APP后台服务-server", "", "forever stop AppBackend", "");
new pClass().init(true, "node", "7041", "", "activity-op", false, "QG", null, "src/config.js", "sh start.sh", null, 1, "优惠券中心-server", "", "sh stop.sh", "");
new pClass().init(true, "node", "7047", "", "op-api", false, "OP", null, "src/dev.config.js", "sh start.sh", null, 1, "系统Api Gateway-server", "", "sh stop.sh", "");
new pClass().init(true, "node", "7047", "", "op-api", false, "OP", null, "src/dev.config.js", "sh start.sh", null, 1, "系统Api-Gateway-server", "", "sh stop.sh", "");
new pClass().init(true, "node", "7049", "", "fe-api", false, "QG", null, "src/config.js", "sh start.sh", null, 1, "科传项目-消息推送", "", "pm2 stop fe-api", "");
new pClass().init(true, "node", "7054", "", "xyqb-h5-backend", false, "QG", null, "src/dev.config.js", "sh start.sh", null, 1, "信用钱包帮助中心", "", "sh stop.sh", "");
new pClass().init(true, "node", "7055", "", "statistics", true, "OP", null, "src/config.js", "sh start.sh", null, 1, "收集前端日志", "", "sh stop.sh", "");
......@@ -154,9 +154,9 @@ process.argv.forEach(function(val, index, array) {
function getListAttr(projects, attr) {
var list = [];
for (var i = 0; i < projects.length; i++) {
// if (projects[i].is_active) {
if (projects[i].is_active) {
list.push(projects[i][attr])
// }
}
}
return list.join(" ");
}
......
......@@ -12,16 +12,16 @@ else
fi
sh /home/qa-deploy-utils/qa_shell_script/3_link_config_file_by_name.sh $project_name $public_ip $4
if [ $? = 0 ]; then
echo "3_link_config_file_by_name.sh ok"
echo "3_link_config_file_by_name ok"
else
echo "3_link_config_file_by_name.sh fail"
echo "3_link_config_file_by_name fail"
exit -1
fi
sh /home/qa-deploy-utils/qa_shell_script/4_build_by_name.sh $project_name $public_ip $4
if [ $? = 0 ]; then
echo "4_build_by_name ok"
echo "4_build_by_name ok"
else
echo "4_build_by_name fail"
echo "4_build_by_name fail"
exit -1
fi
sh /home/qa-deploy-utils/qa_shell_script/5_restart_by_name.sh $project_name $public_ip $4
......
......@@ -42,11 +42,11 @@ function tranceConfig()
#tranceConfig java "spider-center.host=http:\/\/192.168.4.12:7021\/" "spider-center.host=http:\/\/spider-center-12.ss.xyqb.loan\/" "192.168.4.12" "spider-center.properties"
#tranceConfig ui "7041" "7054" "192.168.4.12" "activity-ui.js"
tranceConfig java "baitiao_redpacket_notify_url=http:\/\/192.168.4.12:7031\/redpacket\/distribute\/" "baitiao_redpacket_notify_url=http:\/\/192.168.4.12:7031" "192.168.4.12" "baitiao.properties"
tranceConfig java "wx89894cd83d117b26" "wxdf0392b9a648b646" "192.168.4.12" "xyqb-user2.properties"
tranceConfig java "11fb7f6a8b8edf2776a72c2f5624229c" "0849d140bbb50de8fceae2c4694e2e3f" "192.168.4.12" "xyqb-user2.properties"
tranceConfig ui "wx89894cd83d117b26" "wxdf0392b9a648b646" "192.168.4.12" "xyqb-user-ui.js"
tranceConfig ui "11fb7f6a8b8edf2776a72c2f5624229c" "0849d140bbb50de8fceae2c4694e2e3f" "192.168.4.12" "xyqb-user-ui.js"
tranceConfig ui "wechattest.xyqb.com" "wechattest2.xyqb.com" "192.168.4.12" "xyqb-user-ui.js"
tranceConfig java "wx89894cd83d117b26" "wxdf0392b9a648b646" "192.168.4.12" "xyqb-user2.properties"
tranceConfig java "11fb7f6a8b8edf2776a72c2f5624229c" "0849d140bbb50de8fceae2c4694e2e3f" "192.168.4.12" "xyqb-user2.properties"
tranceConfig ui "wx89894cd83d117b26" "wxdf0392b9a648b646" "192.168.4.12" "xyqb-user-ui.js"
tranceConfig ui "11fb7f6a8b8edf2776a72c2f5624229c" "0849d140bbb50de8fceae2c4694e2e3f" "192.168.4.12" "xyqb-user-ui.js"
tranceConfig ui "wechattest.xyqb.com" "wechattest2.xyqb.com" "192.168.4.12" "xyqb-user-ui.js"
# tranceConfig node "host: \'http:\/\/192.168.4.12:7013" "host: \'http:\/\/192.168.4.12:7042" "192.168.4.12" "AppBackend.js"
# tranceConfig node "host.*7042" "host: 'http:\/\/192.168.4.12:7013" "192.168.4.12" "AppBackend.js"
......@@ -94,7 +94,7 @@ tranceConfig java "www.q-gp.com:2181" "192.168.4.14:2181" "192.168.4.14" "xyqb-u
#4.17
#tranceConfig java "192.168.4.3" "192.168.4.17" "192.168.4.17" "*"
tranceConfig java "ygziguan.api.url=http://139.198.0.253/receiver/grequest" "ygziguan.api.url=http://192.168.4.241/receiver/grequest" "192.168.4.17" "fund-manage.properties"
#4.18
#4.22
......@@ -132,6 +132,10 @@ tranceConfig ui "wx89894cd83d117b26" "wxc94ca68b353e90d0" "192.168.4.24" "xyqb-u
tranceConfig ui "11fb7f6a8b8edf2776a72c2f5624229c" "e30380e9ade07f361e51a643f94d8817" "192.168.4.24" "xyqb-user-ui.js"
tranceConfig ui "wx89894cd83d117b26" "wxc94ca68b353e90d0" "192.168.4.24" "activity-ui.js"
#4.26
tranceConfig java "ygziguan.api.url=http://139.198.0.253/receiver/grequest" "ygziguan.api.url=http://192.168.4.241/receiver/grequest" "192.168.4.26" "fund-manage.properties"
#4.28
tranceConfig java "wx.api_host=https:\/\/api.mch.weixin.qq.com\/" "wx.api_host=http:\/\/192.168.4.241\/" "192.168.4.28" "gu-bei.properties"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment