Commit fcb360b1 authored by daidekun's avatar daidekun
parents bb8bb658 08e66e80
...@@ -3,9 +3,13 @@ target_ip=$1 ...@@ -3,9 +3,13 @@ target_ip=$1
IP_host_first="192.168.4." IP_host_first="192.168.4."
config_files=/home/config_files config_files=/home/config_files
script_path=/home/qa-deploy-utils/qa_shell_script script_path=/home/qa-deploy-utils/qa_shell_script
pwd_path="/home/qa-deploy-utils/qa_shell_script"
config_server="$pwd_path/config_server"
project_path=`cat $config_server/get_env_ip.sh`
if [[ $target_ip == "ALL" ]]; then if [[ $target_ip == "ALL" ]]; then
for ip_last_num in 12 13 14 15 16 17 24 151 152 for ip_last_num in $project_path
do do
expect -c " expect -c "
set timeout 10 set timeout 10
......
...@@ -74,17 +74,18 @@ function buildUiProject() ...@@ -74,17 +74,18 @@ function buildUiProject()
if [ -n "$imagemin_dist" ];then if [ -n "$imagemin_dist" ];then
echo "npm install gruntjs/grunt-contrib-imagemin" echo "npm install gruntjs/grunt-contrib-imagemin"
${node4_path}/npm --registry http://192.168.3.7:4873 install gruntjs/grunt-contrib-imagemin #${node4_path}/
npm install gruntjs/grunt-contrib-imagemin
#${node4_path}/npm --registry http://192.168.3.7:4873 install async
else else
echo "dont install imagemin" echo "dont install imagemin"
fi fi
# --registry http://192.168.3.7:4873
if [ "$node_version" = "node4" ] ;then if [ "$node_version" = "node4" ] ;then
echo "----node-V4---${node4_path}/npm --registry http://192.168.3.7:4873 install" echo "----node-V4---${node4_path}/npm install"
${node4_path}/npm --registry http://192.168.3.7:4873 install ${node4_path}/npm install
else else
npm --registry http://192.168.3.7:4873 install npm --registry http://172.16.3.15:4873 install
fi fi
bower_json=`find ./ -maxdepth 1 -name "bower.json"` bower_json=`find ./ -maxdepth 1 -name "bower.json"`
...@@ -115,7 +116,7 @@ function buildNodeProject() ...@@ -115,7 +116,7 @@ function buildNodeProject()
rm -rf ./$config_file rm -rf ./$config_file
echo " ------------ln -s $config_path/node/$project.* ./$config_file" echo " ------------ln -s $config_path/node/$project.* ./$config_file"
ln -s $config_path/node/$project.* ./$config_file ln -s $config_path/node/$project.* ./$config_file
npm --registry http://192.168.3.7:4873 install npm --registry http://172.16.3.15:4873 install
} }
function buildPythonProject() function buildPythonProject()
......
...@@ -63,17 +63,18 @@ function buildUiProject() ...@@ -63,17 +63,18 @@ function buildUiProject()
if [ -n "$imagemin_dist" ];then if [ -n "$imagemin_dist" ];then
echo "npm install gruntjs/grunt-contrib-imagemin" echo "npm install gruntjs/grunt-contrib-imagemin"
${node4_path}/npm --registry http://192.168.3.7:4873 install gruntjs/grunt-contrib-imagemin #${node4_path}/
npm install gruntjs/grunt-contrib-imagemin
#
else else
echo "dont install imagemin" echo "dont install imagemin"
fi fi
if [ "$node_version" = "node4" ] ;then if [ "$node_version" = "node4" ] ;then
echo "----node-V4---${node4_path}/npm --registry http://192.168.3.7:4873 install" echo "----node-V4---${node4_path}/npm install"
${node4_path}/npm --registry http://192.168.3.7:4873 install ${node4_path}/npm install
else else
npm --registry http://192.168.3.7:4873 install npm --registry http://172.16.3.15:4873 install
fi fi
bower_json=`find ./ -maxdepth 1 -name "bower.json"` bower_json=`find ./ -maxdepth 1 -name "bower.json"`
...@@ -109,7 +110,7 @@ function buildNodeProject() ...@@ -109,7 +110,7 @@ function buildNodeProject()
rm -rf ./$config_file rm -rf ./$config_file
echo " ------------ln -s $config_path/node/$project.* ./$config_file" echo " ------------ln -s $config_path/node/$project.* ./$config_file"
ln -s $config_path/node/$project.* ./$config_file ln -s $config_path/node/$project.* ./$config_file
npm --registry http://192.168.3.7:4873 install npm --registry http://172.16.3.15:4873 install
} }
function buildPythonProject() function buildPythonProject()
......
IP_host=3 12 13 14 15 16 17 24 151 152 12 13 14 15 16 17 22 24 50 151 152
for i in ${IP_HOST[@]}
do
echo $i
done
\ No newline at end of file
...@@ -82,7 +82,7 @@ new pClass().init(true, "ui", "7035", "funding-corp-op-ui", "QG", null, "src/js/ ...@@ -82,7 +82,7 @@ new pClass().init(true, "ui", "7035", "funding-corp-op-ui", "QG", null, "src/js/
new pClass().init(true, "ui", "7007", "paycenter-ui", "QG", null, "src/app/config/env.config.js", "npm run build", "node7", 1, "支付中心-ui",""); new pClass().init(true, "ui", "7007", "paycenter-ui", "QG", null, "src/app/config/env.config.js", "npm run build", "node7", 1, "支付中心-ui","");
new pClass().init(true, "ui", "7043", "xyqb-user-ui", "head_group", null, "src/app/config.js", "npm run qa", "node7", 1, "用户注册登录-V2-ui",""); new pClass().init(true, "ui", "7043", "xyqb-user-ui", "head_group", null, "src/app/config.js", "npm run qa", "node7", 1, "用户注册登录-V2-ui","");
new pClass().init(true, "ui", "7039", "merchant-op-ui", "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "商户系统-ui",""); new pClass().init(true, "ui", "7039", "merchant-op-ui", "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "商户系统-ui","");
new pClass().init(true, "ui", "7004", "di-ting-ui", "QG", null, "client/app/config.js", "grunt build", "node4", 1, "信审-ui",""); new pClass().init(true, "ui", "7004", "di-ting-ui", "QG", null, "client/app/config.js", "grunt build", "node7", 1, "信审-ui","");
new pClass().init(true, "ui", "7020", "spider-center-ui", "QG", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "授信中心-ui",""); new pClass().init(true, "ui", "7020", "spider-center-ui", "QG", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "授信中心-ui","");
new pClass().init(true, "ui", "7002", "qgbc-ui", "QG", null, "src/app/config/env.config.js", "npm run build_production", "node7", 1, "现金贷和白条-白条-ui",""); new pClass().init(true, "ui", "7002", "qgbc-ui", "QG", null, "src/app/config/env.config.js", "npm run build_production", "node7", 1, "现金贷和白条-白条-ui","");
new pClass().init(true, "ui", "7001", "xyqb-ui", "QG", null, "client/app/config.js", "grunt build", "node4", 1, "现金贷和白条-现金贷-ui",""); new pClass().init(true, "ui", "7001", "xyqb-ui", "QG", null, "client/app/config.js", "grunt build", "node4", 1, "现金贷和白条-现金贷-ui","");
...@@ -90,12 +90,13 @@ new pClass().init(true, "ui", "7046", "activity-op-ui", "QG", null, "src/js/env. ...@@ -90,12 +90,13 @@ new pClass().init(true, "ui", "7046", "activity-op-ui", "QG", null, "src/js/env.
new pClass().init(true, "ui", "7048", "order-op-ui", "OP", null, "src/js/env.config.js", "gulp build", "node7", 1, "订单系统-ui",""); new pClass().init(true, "ui", "7048", "order-op-ui", "OP", null, "src/js/env.config.js", "gulp build", "node7", 1, "订单系统-ui","");
// node // node
new pClass().init(true, "node", "7018", "AppBackend", "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", "7018", "AppBackend", "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", "QG", null, "src/config.js", "forever start -a -s --uid activity-op src/app.js", null, 1, "优惠券中心-server","forever stop activity-op"); new pClass().init(true, "node", "7041", "activity-op", "QG", null, "src/config.js", "forever start -a -s --uid activity-op src/app.js", null, 1, "优惠券中心-server","","forever stop activity-op");
new pClass().init(true, "node", "7047", "op-api", "OP", null, "src/config.js", "sh start.sh", null, 1, "系统Api Gateway-server","sh stop.sh"); new pClass().init(true, "node", "7047", "op-api", "OP", null, "src/config.js", "sh start.sh", null, 1, "系统Api Gateway-server","","sh stop.sh");
new pClass().init(true, "node", "7049", "fe-api", "QG", null, "src/config.js", "sh start.sh", null, 1, "科传项目-消息推送","","pm2 stop fe-api");
//python //python
new pClass().init(true, "python", "7022", "qin-qiong", "QG", null, "config/beta/config.properties", null, null, 1, "加密解密-server",""); new pClass().init(true, "python", "7022", "qin-qiong", "QG", null, "config/beta/config.properties", null, null, 1, "加密解密-server","","");
new pClass().init(true, "python", "7033", "xyqb-query", "QG", null, "server/config/beta/config.ini", null, null, 1, "query-server",""); new pClass().init(true, "python", "7033", "xyqb-query", "QG", null, "server/config/beta/config.ini", null, null, 1, "query-server","","");
new pClass().init(false, "python", "7027", "msg-center", "QG", null, "server/config/beta/config.ini", null, null, 1, "短信中心-以前的sms-center",""); new pClass().init(false, "python", "7027", "msg-center", "QG", null, "server/config/beta/config.ini", null, null, 1, "短信中心-以前的sms-center","","");
var temp = ""; var temp = "";
......
...@@ -37,7 +37,7 @@ function tranceConfig() ...@@ -37,7 +37,7 @@ function tranceConfig()
} }
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.13" "xyqb-mall.properties" #tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.12" "xyqb-mall.properties"
tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.151" "xyqb-mall.properties" tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.151" "xyqb-mall.properties"
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.152" "xyqb-mall.properties" #tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.152" "xyqb-mall.properties"
#tranceConfig java "192.168.4.3" "192.168.4.17" "192.168.4.17" "*" #tranceConfig java "192.168.4.3" "192.168.4.17" "192.168.4.17" "*"
...@@ -46,15 +46,22 @@ tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.151" "xyqb-mall.propert ...@@ -46,15 +46,22 @@ tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.151" "xyqb-mall.propert
#tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.24" "xyqb.properties" #tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.24" "xyqb.properties"
#tranceConfig node "192.168.4.3" "192.168.4.107" "192.168.4.12" "AppBackend.js" #tranceConfig node "192.168.4.3" "192.168.4.107" "192.168.4.12" "AppBackend.js"
tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.151" "xyqb.properties" tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.151" "xyqb.properties"
tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.12" "xyqb.properties"
#tranceConfig ui "7047" "12047" "192.168.4.12" "merchant-op-ui.js" #tranceConfig ui "7047" "12047" "192.168.4.12" "merchant-op-ui.js"
tranceConfig node "d45o0qd" "5exp2xo" "192.168.4.152" "op-api.js" tranceConfig node "d45o0qd" "5exp2xo" "192.168.4.152" "op-api.js"
tranceConfig java "192.168.4.15:7007" "139.198.2.95:1507" "192.168.4.15" "gu-bei.properties" #tranceConfig java "192.168.4.15:7007" "139.198.2.95:1507" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "hubei.api.url=http:\/\/192.168.100.185:8585" "hubei.api.url=http:\/\/192.168.4.251:8585" "192.168.4.16" "di-ting.properties" tranceConfig java "hubei.api.url=http:\/\/192.168.100.185:8585" "hubei.api.url=http:\/\/192.168.4.251:8585" "192.168.4.16" "di-ting.properties"
#tranceConfig java "wxcdf6077af8127559" "wx0a7c0bce0c3ac523" "192.168.4.15" "xyqb-user2.properties"
#tranceConfig java "16eaec16084d0d9c52d4114f359cc72c" "85d9d59d29d8ed24c361f73d4f35ff91" "192.168.4.15" "xyqb-user2.properties"
#这个配置是微信支付的时候,需要修改成线上的沙箱环境
#tranceConfig java "wxcdf6077af8127559" "wx0a7c0bce0c3ac523" "192.168.4.15" "xyqb-user2.properties"
#tranceConfig java "16eaec16084d0d9c52d4114f359cc72c" "10131fe347f88e0affabe45b7ee4ca6c" "192.168.4.15" "xyqb-user2.properties"
#tranceConfig java "e1dd0780c93aae56c2d786184421cfc8" "10131fe347f88e0affabe45b7ee4ca6c" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "paycenter.host.url=http:\/\/192.168.4.15:7007" "paycenter.host.url=http:\/\/wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "139.198.2.95:1507" "wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#微信环境配置结束
#tranceConfig java "192.168.4.14:7007" "139.198.2.95:1407" "192.168.4.14" "gu-bei.properties"
......
...@@ -32,6 +32,7 @@ add_vhost sms ...@@ -32,6 +32,7 @@ add_vhost sms
add_vhost spider_center add_vhost spider_center
add_vhost xyqb_push add_vhost xyqb_push
add_vhost bt_loan add_vhost bt_loan
add_vhost baitiao_qrcode
#add exchange #add exchange
add_exchange / hello-exchange direct add_exchange / hello-exchange direct
...@@ -48,6 +49,7 @@ add_exchange sms sms-control direct ...@@ -48,6 +49,7 @@ add_exchange sms sms-control direct
add_exchange xyqb_push events direct add_exchange xyqb_push events direct
add_exchange bt_loan bt_loan_exchange direct add_exchange bt_loan bt_loan_exchange direct
add_exchange baitiao_debt baitiaodebt_orderinfo direct add_exchange baitiao_debt baitiaodebt_orderinfo direct
add_exchange baitiao_qrcode qrcode fanout
#add queues #add queues
add_queues /black_hole contractQueue add_queues /black_hole contractQueue
......
#!/bin/bash #!/bin/bash
IP_host_first="192.168.4." IP_host_first="192.168.4."
for ip_last_num in 3 12 13 14 15 16 17 24 151 152 pwd_path="/home/qa-deploy-utils/qa_shell_script"
config_server="$pwd_path/config_server"
project_path=`cat $config_server/get_env_ip.sh`
for ip_last_num in $project_path
do do
expect -c " expect -c "
set timeout 10 set timeout 10
...@@ -12,4 +19,4 @@ for ip_last_num in 3 12 13 14 15 16 17 24 151 152 ...@@ -12,4 +19,4 @@ for ip_last_num in 3 12 13 14 15 16 17 24 151 152
expect \"]#\" expect \"]#\"
send \"exit\r\" send \"exit\r\"
expect eof;" expect eof;"
done done
\ No newline at end of file
...@@ -4,7 +4,7 @@ public_ip="139.198.2.95" ...@@ -4,7 +4,7 @@ public_ip="139.198.2.95"
mkdir /home/sub_config_file_dont_rm mkdir /home/sub_config_file_dont_rm
for ip_last_num in 12 13 14 15 16 17 24 151 152 for ip_last_num in 12 13 14 15 16 17 22 24 50 151 152
do do
cd /home/sub_config_file_dont_rm cd /home/sub_config_file_dont_rm
mkdir ${IP_host_first}${ip_last_num} mkdir ${IP_host_first}${ip_last_num}
......
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