Commit c607a173 authored by daidekun's avatar daidekun
parents 6b1473de a7cab97a
/qa_shell_script/TEMP/*
.idea/
*.swp
# -------------------------------------------------------------------------------
# Filename: db_replace_ip.sh
# Revision: 1.1
# Date: 2017/02
# Author: dekun.dai
# Description: 该脚本根据备份sql称特定环境使用的sql
# Usage:used by ../deploy/db_replace_ip.sh
# -------------------------------------------------------------------------------
database_name=$1
server_host=$2
db_sub_backup_folder=$3
re_replace_ip=$4
public_ip="www.q-gp.com"
ip_last=$5
pwd_path="/home/qa-deploy-utils/qa_shell_script"
config_server="$pwd_path/config_server"
echo $server_host
cd $db_sub_backup_folder
file_count=`ls -l |grep "^-"|wc -l`
function trancsHostName()
{
if [ "$4" = true ]; then
sed -i "s/$2/$3-$7.q-gp.com/g" $5
else
sed -i "s/$2/$6:$1/g" $5
fi
}
echo "./* file count is $file_count"
if [ "$file_count" -gt 0 ]; then
for entry in ./*
do
sed -i "s/https/http/g" $entry
echo "is replace ip for db_back_file $entry"
var=`cat $config_server/get_project_host.sh`
for v in ${var[@]}
do
i=${v//|/ }
trancsHostName i $re_replace_ip $entry ${server_host} ${ip_last}
done
done
fi
......@@ -49,13 +49,15 @@ else
spawn ssh root@${IP_host_first}${target_ip}
expect *ssword* { send !QAZ2wsx\r }
expect \"]#\"
send \"umount -l /home/qa-deploy-utils/qa_shell_script\r\"
expect \"]#\"
send \"mkdir -p /home/qa-deploy-utils/qa_shell_script\r\"
set timeout -1
expect \"]#\"
send \"mount -t nfs 192.168.4.3:/home/qa-deploy-utils/qa_shell_script /home/qa-deploy-utils/qa_shell_script\r\"
set timeout -1
expect \"]#\"
send \"umount $config_files\r\"
send \"umount -l $config_files\r\"
set timeout -1
expect \"]#\"
send \"rm -rf $config_files\r\"
......
......@@ -13,7 +13,7 @@ if [ -n "$project_folder" ];then
type=`node $config_server/get_project_config.js -name $project_name -attr type`
if [ "$type" = "node" ];then
command2=`node $config_server/get_project_config.js -name $project_name -attr command2`
command2
$command2
fi
sh $config_server/show_info.sh $project_name pull代码 $desc $3
cd ./$project_name
......
......@@ -16,7 +16,7 @@ function getCode()
type=`node $config_server/get_project_config.js -name $project_name -attr type`
if [ "$type" = "node" ];then
command2=`node $config_server/get_project_config.js -name $project_name -attr command2`
command2
$command2
fi
cd $project_path
project_folder=`find ./ -maxdepth 1 -name "$project"`
......
......@@ -21,10 +21,11 @@ function buildJavaProject()
{
project=$1
desc=`node $config_server/get_project_config.js -name $project -attr desc`
target_path=`node $config_server/get_project_config.js -name $project -attr target_path`
sh $config_server/show_info.sh $project BUILD $desc $2
cd $project_path/$project
rm -rf ./target/
rm -rf $target_path
rm -rf $project.jar
if [[ "$project" = "xyqb" || "$project" = "gu-bei" || "$project" = "han-gu-guan" || "$project" = "di-ting" || "$project" = "xyqb-offline" || "$project" = "xyqb-user2" ]]; then
......@@ -40,26 +41,17 @@ function buildJavaProject()
sed -i "${num}s/1.0.[0-9]-SNAPSHOT/1.0.0.${suffix}-SNAPSHOT/" $project_path/$project/pom.xml
sed -i "${num}s/1.0.[0-9].[0-9]/1.0.0.${suffix}-SNAPSHOT/" $project_path/$project/pom.xml
fi
# if [[ "$project" = "baitiao" ]]; then
# num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
# echo "----$project-----pom.xml file line: $num------------"
# sed -i "${num}s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
# fi
if [[ "$project" = "finance-api" || "$project" = "financial-system" ]]; then
num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
echo "----$project-----pom.xml file line: $num------------"
sed -i "${num}s/1.0.6.3/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
fi
if [[ "$project" = "finance-api" || "$project" = "financial-system" ]]; then
num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
echo "----$project-----pom.xml file line: $num------------"
sed -i "${num}s/1.0.6.3/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
fi
echo "mvn clean package -P${profile} -Dmaven.test.skip=true"
mvn clean package -P${profile} -Dmaven.test.skip=true
if [[ $project == "baitiao" ]]; then
mv $project_path/$project/baitiao-api/target/*.jar $project_path/$project/$project.jar
else
mv $project_path/$project/target/*.jar $project_path/$project/$project.jar
fi
echo "$target_path"
mv $project_path/$project/$target_path/*.jar $project_path/$project/$project.jar
}
function buildUiProject()
......
......@@ -18,10 +18,11 @@ function buildJavaProject()
{
project=$1
desc=`node $config_server/get_project_config.js -name $project -attr desc`
echo
target_path=`node $config_server/get_project_config.js -name $project -attr target_path`
sh $config_server/show_info.sh $project "打包BUILD" $desc $2
cd $project_path/$project
rm -rf ./target/
rm -rf $target_path
rm -rf $project.jar
if [[ "$project" = "xyqb" || "$project" = "gu-bei" || "$project" = "han-gu-guan" || "$project" = "di-ting" || "$project" = "xyqb-offline" || "$project" = "xyqb-user2" ]]; then
......@@ -36,22 +37,15 @@ function buildJavaProject()
sed -i "${num}s/1.0.[0-9].[0-9]/1.0.0.${suffix}-SNAPSHOT/" $project_path/$project/pom.xml
fi
# if [[ "$project" = "baitiao" ]]; then
# num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
# echo "----$project-----pom.xml file line: $num------------"
# sed -i "${num}s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
# fi
if [[ "$project" = "finance-api" || "$project" = "financial-system" ]]; then
num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
echo "----$project-----pom.xml file line: $num------------"
sed -i "${num}s/1.0.6.3/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
fi
if [[ "$project" = "finance-api" || "$project" = "financial-system" ]]; then
num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
echo "----$project-----pom.xml file line: $num------------"
sed -i "${num}s/1.0.6.3/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
fi
echo "mvn clean package -P${profile} -Dmaven.test.skip=true"
mvn clean package -P${profile} -Dmaven.test.skip=true
mv $project_path/$project/target/*.jar $project_path/$project/$project.jar
mv $project_path/$project/$target_path/*.jar $project_path/$project/$project.jar
}
function buildUiProject()
......
......@@ -50,8 +50,15 @@ function restartJavaProject()
fi
echo "$run_command"
echo `$run_command`
sleep 10s
if [[ $project == "redpacket" ]]; then
echo `java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${project}.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${project}.jar --worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &`
else
echo `java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${project}.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${project}.jar --worker 1 --currentWorker 1 -t > /dev/null 2>&1 &`
fi
sleep 10s
#ack "$ack_phrase" $project_path/logs/$log_name ${max_wait_log_generate_time} ${max_wait_ack_time}
done
......
......@@ -12,13 +12,13 @@ var users = [{}, {
name: "dekun.dai",
pwd: "quantgroup.com"
}, {
name: "shengcong.gan",
pwd: "12345678"
name: "dekun.dai",
pwd: "quantgroup.com"
}];
var pClass = function () {};
pClass.prototype = {
init: function (isActive, projectType, port, projectName, ssh_git, gitPath, logName, configFile, command, nodeVersion, userIndex, desc, auth, command2) {
init: function (isActive, projectType, port, projectName, ssh_git, gitPath, logName, configFile, command, nodeVersion, userIndex, desc, auth, command2, java_target_path) {
this.name = projectName;
this.type = projectType;
if (!ssh_git) {
......@@ -36,11 +36,15 @@ pClass.prototype = {
this.desc = desc;
this.is_active = isActive;
this.auth = auth;
this.target_path = java_target_path;
projects[projectName] = this;
switch (projectType) {
case "java":
this.command = "java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/" + projectName + ".log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar " + projectName + ".jar " + command;
java_projects.push(this);
if (this.target_path == ""){
this.target_path = "./target"
}
break;
case "node":
this.command = command;
......@@ -58,73 +62,75 @@ pClass.prototype = {
}
}
// --java
new pClass().init(true, "java", "7003", "xyqb", false, "QG", "xyqb.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "现金贷-server", "");
new pClass().init(true, "java", "7025", "baitiao", true, "baitiao", "baitiao.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "白条-server", "");
new pClass().init(true, "java", "7019", "xyqb-mall", false, "QG", "mall.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "商城后台-server", "");
new pClass().init(true, "java", "7010", "xyqb-offline", false, "QG", "xyqb_offline.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "线下业务-server", "");
new pClass().init(true, "java", "7042", "xyqb-user2", true, "head_group/xyqb-user2.git", "xyqb_user.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "用户注册登录-V2-server", "");
new pClass().init(true, "java", "7005", "di-ting", false, "QG", "di_ting.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "风控审计-server", "");
new pClass().init(true, "java", "7013", "han-gu-guan", false, "QG", "han-gu-guan.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "用户注册登录-V1-server", "");
new pClass().init(true, "java", "7015", "jian-men-guan", false, "QG", "jian_men_guan.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "信审服务-server", "");
new pClass().init(true, "java", "7028", "black-hole", false, "QG", "black-hole.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "合同中心-server", "");
new pClass().init(true, "java", "7006", "gu-bei", false, "QG", "pay-center.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "支付中心-server", "");
new pClass().init(true, "java", "7023", "xyqb-quartz", false, "QG", "quartz.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "定时任务-server", "");
new pClass().init(true, "java", "7021", "spider-center", false, "QG", "spider-center.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "授信-server", "");
new pClass().init(true, "java", "7037", "cash-loan-flow", false, "QG", "cash_loan_flow.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "现金贷流量对接-server", "");
new pClass().init(true, "java", "7012", "financial-system", false, "QG", "financial_system.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "财务系统-server", "");
new pClass().init(false, "java", "7034", "fund-manage", false, "QG", "fund_manage.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "债转系统-server", "");
new pClass().init(false, "java", "7029", "gyxd", false, "QG", "gyxd.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "广源小贷-server", "");
new pClass().init(true, "java", "7038", "merchant-backend", false, "QG", "merchant.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "商户后台-server", "凌子华/陈东亮");
new pClass().init(true, "java", "7031", "redpacket", false, "QG", "redpacket.log", "application.properties", "--worker 1 --currentWorker 1 -t > /dev/null 2>&1 &", null, 2, "红包系统-server", "");
new pClass().init(false, "java", "7044", "finance-api", false, "bo.wang", "finance-api.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "财务系统-server", "");
new pClass().init(false, "java", "7045", "check-accounts", false, "QG", "check_accounts.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "对账系统-server", "");
new pClass().init(true, "java", "7014", "du-jiang-yan", false, "QG", "du_jiang_yan.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "第三方对接导流-server", "");
new pClass().init(false, "java", "7051", "msg", false, "QG", "msg.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "新版消息中心", "");
new pClass().init(false, "java", "7052", "xyqb-btzt", true, "qg-op-backend", "xyqb-btzt.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "白条直投外部", "");
new pClass().init(false, "java", "7053", "xyqb-btzt-internal", true, "qg-op-backend", "xyqb-btzt-internal.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "白条直投内部", "");
new pClass().init(false, "java", "7060", "xyqb-backend", true, "qg-op-backend", "xyqb-backend.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "运营系统服务", "");
new pClass().init(true, "java", "7062", "xyqb-user2-query", true, "head_group", "xyqb_user_query.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "用户系统查询服务", "");
new pClass().init(false, "java", "7063", "traffic-webapp", true, "qg-op-backend", "traffic.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "流量分发系统", "");
new pClass().init(false, "java", "7017", "silk-road-eureka", true, "baitiao", "silk-road-eureka.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "Eureka 服务注册发现微服务", "魏巍");
new pClass().init(false, "java", "7027", "silk-road-caller", true, "baitiao", "silk-road-caller.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "MQ消息调用中心微服务", "魏巍");
new pClass().init(false, "java", "7056", "score", true, "baitiao", "score.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "积分系统", "刑志超");
new pClass().init(true, "java", "7003", "xyqb", false, "QG", "xyqb.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "现金贷-server", "","","");
new pClass().init(true, "java", "7025", "baitiao", true, "baitiao", "baitiao.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "白条-server", "","","./baitiao-api/target");
new pClass().init(true, "java", "7019", "xyqb-mall", false, "QG", "mall.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "商城后台-server", "","","");
new pClass().init(true, "java", "7010", "xyqb-offline", false, "QG", "xyqb_offline.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "线下业务-server", "","","");
new pClass().init(true, "java", "7042", "xyqb-user2", true, "head_group", "xyqb_user.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "用户注册登录-V2-server", "","","");
new pClass().init(true, "java", "7005", "di-ting", false, "QG", "di_ting.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "风控审计-server", "","","");
new pClass().init(true, "java", "7013", "han-gu-guan", false, "QG", "han-gu-guan.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "用户注册登录-V1-server", "","","");
new pClass().init(true, "java", "7015", "jian-men-guan", false, "QG", "jian_men_guan.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "信审服务-server", "","","");
new pClass().init(true, "java", "7028", "black-hole", false, "QG", "black-hole.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "合同中心-server", "","","");
new pClass().init(true, "java", "7006", "gu-bei", false, "QG", "pay-center.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "支付中心-server", "","","");
new pClass().init(true, "java", "7023", "xyqb-quartz", false, "QG", "quartz.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "定时任务-server", "","","");
new pClass().init(true, "java", "7021", "spider-center", false, "QG", "spider-center.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "授信-server", "","","");
new pClass().init(true, "java", "7037", "cash-loan-flow", false, "QG", "cash_loan_flow.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "现金贷流量对接-server", "","","");
new pClass().init(true, "java", "7012", "financial-system", false, "QG", "financial_system.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "财务系统-server", "","","");
new pClass().init(false, "java", "7034", "fund-manage", false, "QG", "fund_manage.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "债转系统-server", "","","");
new pClass().init(false, "java", "7029", "gyxd", false, "QG", "gyxd.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "广源小贷-server", "","","");
new pClass().init(true, "java", "7038", "merchant-backend", false, "QG", "merchant.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "商户后台-server", "凌子华/陈东亮","","");
new pClass().init(true, "java", "7031", "redpacket", true, "baitiao", "redpacket.log", "application.properties", "--worker 1 --currentWorker 1 -t > /dev/null 2>&1 &", null, 2, "红包系统-server", "","","");
new pClass().init(false, "java", "7044", "finance-api", false, "bo.wang", "finance-api.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "财务系统-server", "","","");
new pClass().init(false, "java", "7045", "check-accounts", false, "QG", "check_accounts.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "对账系统-server", "","","");
new pClass().init(true, "java", "7014", "du-jiang-yan", false, "QG", "du_jiang_yan.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "第三方对接导流-server", "","","");
new pClass().init(false, "java", "7051", "msg", false, "QG", "msg.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "新版消息中心", "","","");
new pClass().init(false, "java", "7052", "xyqb-btzt", true, "qg-op-backend", "xyqb-btzt.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "白条直投外部", "","","");
new pClass().init(false, "java", "7053", "xyqb-btzt-internal", true, "qg-op-backend", "xyqb-btzt-internal.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "白条直投内部", "","","");
new pClass().init(false, "java", "7060", "xyqb-backend", true, "qg-op-backend", "xyqb-backend.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "运营系统服务", "","","");
new pClass().init(true, "java", "7062", "xyqb-user2-query", true, "head_group", "xyqb_user_query.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "用户系统查询服务", "","","");
new pClass().init(false, "java", "7063", "traffic-webapp", true, "qg-op-backend", "traffic.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "流量分发系统", "","","");
new pClass().init(false, "java", "7017", "silk-road-eureka", true, "baitiao", "silk-road-eureka.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "Eureka 服务注册发现微服务", "魏巍","","");
new pClass().init(false, "java", "7027", "silk-road-caller", true, "baitiao", "silk-road-caller.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "MQ消息调用中心微服务", "魏巍","","");
new pClass().init(false, "java", "7056", "score", true, "baitiao", "score.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "积分系统", "刑志超","","");
new pClass().init(false, "java", "7065", "silk-road-backman", true, "baitiao", "silk-road-backman.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "白条直投-对内系统2", "张曙","","");
new pClass().init(false, "java", "7066", "silk-road", true, "baitiao", "silk-road.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "白条直投-对外系统2", "魏巍","","");
new pClass().init(false, "java", "7059", "baitiao-zhitou", true, "baitiao", "baitiao-zhitou.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &", null, 2, "白条直投-对接资金方", "张斌","","./xyqb-btzt-internal/target/");
// 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", "7011", "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", "offline-ui", false, "QG", null, "src/app/config/env.config.js", "npm run build", "node7", 1, "线下白条-ui", "");
new pClass().init(true, "ui", "7035", "funding-corp-op-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "白条债转系统-ui", "");
new pClass().init(true, "ui", "7007", "paycenter-ui", false, "QG", null, "src/app/config/env.config.js", "npm run build", "node7", 1, "支付中心-ui", "");
new pClass().init(true, "ui", "7043", "xyqb-user-ui", false, "head_group", null, "src/app/config.js", "npm run qa", "node7", 1, "用户注册登录-V2-ui", "");
new pClass().init(true, "ui", "7039", "merchant-op-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "商户系统-ui", "");
new pClass().init(true, "ui", "7004", "di-ting-ui", false, "QG", null, "client/app/config.js", "grunt build", "node7", 1, "信审-ui", "");
new pClass().init(true, "ui", "7020", "spider-center-ui", false, "QG", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "授信中心-ui", "");
new pClass().init(true, "ui", "7050", "qgbc-ui", false, "QG", null, "src/app/config/env.config.js", "npm run build_production", "node7", 1, "白条-ui", "");
new pClass().init(true, "ui", "7058", "mall-ui", true, "ui", null, "src/app/config/env.config.js", "npm run build_production", "node7", 1, "商城-ui", "");
new pClass().init(true, "ui", "7001", "xyqb-ui", false, "QG", null, "client/app/config.js", "grunt build", "node4", 1, "现金贷和白条-现金贷-ui", "");
new pClass().init(true, "ui", "7046", "activity-op-ui", false, "QG", null, "src/config/env.config.js", "npm run build", "node7", 1, "优惠券管理后台-ui", "");
new pClass().init(true, "ui", "7048", "order-op-ui", false, "OP", null, "src/js/env.config.js", "gulp build", "node7", 1, "订单系统-ui", "");
new pClass().init(true, "ui", "7002", "bt-ui", false, "QG", null, "src/app/config/env.config.js", "npm --registry http://172.16.3.15:4873 run qa", "node7", 1, "新版白条-ui", "");
new pClass().init(true, "ui", "7057", "xjd-ui", false, "QG", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "新版现金贷-ui", "");
new pClass().init(true, "ui", "7007", "new-paycenter-ui", false, "QG", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "新版支付中心-ui", "");
new pClass().init(false, "ui", "7061", "wind-control-op-ui", true, "ui", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "临时项目,未来删除风控平台-ui", "");
new pClass().init(false, "ui", "7016", "flow-op-ui", true, "ui", null, "src/config/env.config.js", "npm run build", "node7", 1, "", "");
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 build", "node7", 1, "新版授信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", "7011", "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", "offline-ui", false, "QG", null, "src/app/config/env.config.js", "npm run build", "node7", 1, "线下白条-ui", "","","");
new pClass().init(true, "ui", "7035", "funding-corp-op-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "白条债转系统-ui", "","","");
new pClass().init(true, "ui", "7007", "paycenter-ui", false, "QG", null, "src/app/config/env.config.js", "npm run build", "node7", 1, "支付中心-ui", "","","");
new pClass().init(true, "ui", "7043", "xyqb-user-ui", false, "head_group", null, "src/app/config.js", "npm run qa", "node7", 1, "用户注册登录-V2-ui", "","","");
new pClass().init(true, "ui", "7039", "merchant-op-ui", false, "QG", null, "src/js/env.config.js", "npm run build", "node7", 1, "商户系统-ui", "","","");
new pClass().init(true, "ui", "7004", "di-ting-ui", false, "QG", null, "client/app/config.js", "grunt build", "node7", 1, "信审-ui", "","","");
new pClass().init(true, "ui", "7020", "spider-center-ui", false, "QG", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "授信中心-ui", "","","");
new pClass().init(true, "ui", "7050", "bt-ui", false, "QG", null, "src/app/config/env.config.js", "npm --registry http://172.16.3.15:4873 run qa", "node7", 1, "新版白条-ui", "","","");
new pClass().init(true, "ui", "7058", "mall-ui", true, "ui", null, "src/app/config/env.config.js", "npm run build", "node7", 1, "商城-ui", "","","");
new pClass().init(true, "ui", "7001", "xyqb-ui", false, "QG", null, "client/app/config.js", "grunt build", "node4", 1, "现金贷和白条-现金贷-ui", "","","");
new pClass().init(true, "ui", "7046", "activity-op-ui", false, "QG", null, "src/config/env.config.js", "npm run build", "node7", 1, "优惠券管理后台-ui", "","","");
new pClass().init(true, "ui", "7048", "order-op-ui", false, "OP", null, "src/js/env.config.js", "gulp build", "node7", 1, "订单系统-ui", "","","");
new pClass().init(true, "ui", "7002", "qgbc-ui", false, "QG", null, "src/app/config/env.config.js", "npm run build_production", "node7", 1, "白条-ui", "","","");
new pClass().init(true, "ui", "7057", "xjd-ui", false, "QG", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "新版现金贷-ui", "","","");
new pClass().init(true, "ui", "7007", "new-paycenter-ui", false, "QG", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "新版支付中心-ui", "","","");
new pClass().init(false, "ui", "7061", "wind-control-op-ui", true, "ui", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "临时项目,未来删除风控平台-ui", "","","");
new pClass().init(false, "ui", "7016", "flow-op-ui", true, "ui", null, "src/config/env.config.js", "npm run build", "node7", 1, "", "","","");
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", "郑少文","","");
// 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/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/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");
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/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/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","");
//python
new pClass().init(true, "python", "7022", "qin-qiong", false, "QG", null, "config/beta/config.properties", null, null, 1, "加密解密-server", "", "");
new pClass().init(true, "python", "7033", "xyqb-query", false, "QG", null, "server/config/beta/config.ini", null, null, 1, "query-server", "", "");
new pClass().init(false, "python", "7027", "msg-center", false, "QG", null, "server/config/beta/config.ini", null, null, 1, "短信中心-以前的sms-center", "", "");
new pClass().init(true, "python", "7022", "qin-qiong", false, "QG", null, "config/beta/config.properties", null, null, 1, "加密解密-server", "", "","");
new pClass().init(true, "python", "7033", "xyqb-query", false, "QG", null, "server/config/beta/config.ini", null, null, 1, "query-server", "", "","");
new pClass().init(false, "python", "7027", "msg-center", false, "QG", null, "server/config/beta/config.ini", null, null, 1, "短信中心-以前的sms-center", "", "","");
var temp = "";
......@@ -166,6 +172,21 @@ configFunction.prototype = {
}
}
},
getProjectsAttrs: function (projects,attr) {
var attrs = attr.split("/");
if(attrs.length == 0){
return
}
var list = [];
for (var i = 0; i < projects.length; i++ ) {
var li = [projects[i]["name"]];
for (var j = 0; j < attrs.length; j++ ){
li.push(projects[i][attrs[j]]);
}
list.push(li.join("|"));
}
return list.join(" ");
},
getProjectsAttr: function (type, attr) {
switch (type) {
case "java":
......@@ -187,6 +208,13 @@ var F = new configFunction();
if (param["type"] == "") {
F.getProjectAttr(param["name"], param["attr"]);
} else {
} else if(param["type"] == "multi"){
var str = "";
str += F.getProjectsAttrs(java_projects,param["attr"]);
str += " "+F.getProjectsAttrs(ui_projects,param["attr"]);
str += " "+F.getProjectsAttrs(python_projects,param["attr"]);
str += " "+F.getProjectsAttrs(node_projects,param["attr"]);
console.log(str)
}else {
F.getProjectsAttr(param["type"], param["attr"]);
}
\ No newline at end of file
}
7001|m.xyqb.com|xyqb-ui
7050|bt.xyqb.com|bt-ui
7003|api.xyqb.com|xyqb
7004|r.xyqb.com|di-ting-ui
7005|rapi.xyqb.com|di-ting
7006|payapi.xyqb.com|gu-bei
7007|pay.xyqb.com|pay-center-ui
7008|off.xyqb.com|offline-ui
7010|offapi.xyqb.com|xyqb-offline
7011|financial.xyqb.com|financial-system-ui
7012|fsapi.xyqb.com|financial-system
7013|auth.xyqb.com|han-gu-guan
7037|qapi.xyqb.com|cash-loan-flow
7019|mallapi.xyqb.com|xyqb-mall
7021|scapi.xyqb.com|spider-center
7029|gyxdapi.xyqb.com|gyxd
7025|btapi.xyqb.com|baitiao
\ No newline at end of file
......@@ -54,11 +54,11 @@ tranceConfig java "red.packet.id=10000115" "red.packet.id=56" "192.168.4.13" "xy
tranceConfig java "7002" "7050" "192.168.4.13" "baitiao.properties"
tranceConfig java "lkb.model.url=http:\/\/192.168.4.202\/Model\/openapi" "lkb.model.url=http:\/\/192.168.4.13:8090\/Model\/openapi" "192.168.4.13" "baitiao.properties"
tranceConfig java "xyqb.model.url=http:\/\/192.168.4.202\/Model\/openapi" "xyqb.model.url=http:\/\/192.168.4.13:8090\/Model\/openapi" "192.168.4.13" "baitiao.properties"
tranceConfig java "wx89894cd83d117b26" "wxdf0392b9a648b646" "192.168.4.13" "xyqb-user2.properties"
tranceConfig java "11fb7f6a8b8edf2776a72c2f5624229c" "0849d140bbb50de8fceae2c4694e2e3f" "192.168.4.13" "xyqb-user2.properties"
tranceConfig ui "wx89894cd83d117b26" "wxdf0392b9a648b646" "192.168.4.13" "xyqb-user-ui.js"
tranceConfig ui "11fb7f6a8b8edf2776a72c2f5624229c" "0849d140bbb50de8fceae2c4694e2e3f" "192.168.4.13" "xyqb-user-ui.js"
tranceConfig ui "wechattest.xyqb.com" "wechattest2.xyqb.com" "192.168.4.13" "xyqb-user-ui.js"
tranceConfig java "wx89894cd83d117b26" "wx5b2e77c58fdcf1a5" "192.168.4.13" "xyqb-user2.properties"
tranceConfig java "11fb7f6a8b8edf2776a72c2f5624229c" "feb3c0705c1200f3759052310bde3369" "192.168.4.13" "xyqb-user2.properties"
tranceConfig ui "wx89894cd83d117b26" "wx5b2e77c58fdcf1a5" "192.168.4.13" "xyqb-user-ui.js"
tranceConfig ui "11fb7f6a8b8edf2776a72c2f5624229c" "feb3c0705c1200f3759052310bde3369" "192.168.4.13" "xyqb-user-ui.js"
tranceConfig ui "wechattest.xyqb.com" "wechattest1.xyqb.com" "192.168.4.13" "xyqb-user-ui.js"
#4.14
#tranceConfig java 'cardniu.client.url=http://kn.feidee.net/loanmanage/loan/partner/k_n_user_quota_client.do' 'cardniu.client.url=http://192.168.4.248/mockjs/31/loanmanage/loan/partner/k_n_user_quota_client.do' "192.168.4.14" "xyqb.properties"
......@@ -119,6 +119,7 @@ tranceConfig java "xyqb.is.debug=0" "xyqb.is.debug=1" "192.168.4.23" "baitiao.pr
#tranceConfig java "sms.is.debug=1" "sms.is.debug=0" "192.168.4.24" "di-ting.properties"
#tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.24" "xyqb.properties"
tranceConfig node "112233445512345.ittun.com" "activity-op-24.ss.xyqb.loan" "192.168.4.24" "activity-op.js"
tranceConfig java "192.168.4.24:7058" "wechattest2.xyqb.com" "192.168.4.24" "xyqb.properties"
#4.151
tranceConfig java "xyqb.is.debug=0" "xyqb.is.debug=1" "192.168.4.151" "xyqb.properties"
......
#/bin/bash
pwd_path="/home/qa-deploy-utils/qa_shell_script"
config_server="$pwd_path/config_server"
project_path=`cat $config_server/project_path.sh`
config_path=`cat $config_server/config_path.sh`
function changeGitFile()
{
projects=(`node $config_server/get_project_config.js -type $1 -attr name`)
for project in ${projects[@]}
do
echo "----$project--done"
sed -i "s/shengcong.gan:12345678/dekun.dai:quantgroup.com/g" /home/quant_group/$project/.git/config
done
}
changeGitFile java
changeGitFile ui
changeGitFile node
changeGitFile python
#!/bin/bash
IP_host_first="192.168.4."
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
echo "------------------IP-${IP_host_first}${ip_last_num}------------------"
expect -c "
set timeout 10
spawn ssh root@${IP_host_first}${ip_last_num}
expect *ssword* { send !QAZ2wsx\r }
expect \"]#\"
send \"sh /home/qa-deploy-utils/qa_shell_script/migrate_ENV/$1\r\"
set timeout -1
expect \"]#\"
send \"exit\r\"
expect eof;"
echo "======================END================================="
done
function mock()
{
mkdir -p /home/quant_group/gu-bei/config
if [[ -a /home/quant_group/gu-bei/config/application.properties ]]; then
sed -i "/yeepay.v2.xyqb.merchant/d" /home/quant_group/gu-bei/config/application.properties
sed -i "/yeepay.v2.xyqb.privateKey/d" /home/quant_group/gu-bei/config/application.properties
sed -i "/yeepay.v2.xyqb.yeepay.publicKey/d" /home/quant_group/gu-bei/config/application.properties
sed -i "/yeepay.v2.apihost/d" /home/quant_group/gu-bei/config/application.properties
fi
echo "yeepay.v2.xyqb.merchant=10000449633" >> /home/quant_group/gu-bei/config/application.properties
echo "yeepay.v2.xyqb.privateKey=MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBANSBQSc0Hlr+mS7uoIjYS71X2DJ6ZrCcbB1uICqty9QY6W16nZ8tLN/d9k2Z+e2rGG8s7PskpU2T+WuJeDSXs/vpPllG8/tSRVaWcr9EzPaSti3ltSUH0QOLSypZEjTT/slscExj4PMOmQXUXP3gewjNWz1cYRI7dGnKPm+ZFah/AgMBAAECgYB8AcFngz6DkzcI8C+2K6JnJ6/+JPdv8JgWxID45tqfNrphLMB2dwJM0VY+CrCSRNnJZsoT9FqSXtuaKWqAJlbchhPZjupA9RkWFzlGpCQ63/CC71RYYY03eCnc7AIpn52whkjfWG/yf57jKzEwUT+U034uvXdaA+lVvJ0xqpj3gQJBAOmLODjecn450TJbNQaop+7Q5Hz2TUIxbYakzPpcLGv1QYgHa657r7PJ23ZltDBGldMaNTZfqJrtDcq0rTA4lBECQQDo8CcdUhMZ3JbR2UZN0CG8ljMbNWgNWBa37ebE3ZG5yYldc7zY9US/+/7lhxNDqG0saTvM9pJwEc3ccVMvksOPAkEAqq7V+zIQKVJmItBn06MFgNNoei+kTUFEk8f0CvG8gXYwW5NYzp+UzOg1HbW82B9uNmeMBl4pInknwEMF5B0lkQJAdRxQPgCGk+kAdo6LNxHd9Ed7eEF4h8Ty3xQfgnh3DHYTtsU6e8WMBA24kENB3zEtejeKFjkdVHTPD/Z1wSRDZwJAAvNuq0YuRDsESOAerkBZKonA5CD0M4vHTRqihHrjBohv6yxBU8P7gALrX7qmoaZ3aLmN8wHdOAGTR6LZjQdkoQ==" >> /home/quant_group/gu-bei/config/application.properties
echo "yeepay.v2.xyqb.yeepay.publicKey=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUgUEnNB5a/pku7qCI2Eu9V9gyemawnGwdbiAqrcvUGOltep2fLSzf3fZNmfntqxhvLOz7JKVNk/lriXg0l7P76T5ZRvP7UkVWlnK/RMz2krYt5bUlB9EDi0sqWRI00/7JbHBMY+DzDpkF1Fz94HsIzVs9XGESO3Rpyj5vmRWofwIDAQAB" >> /home/quant_group/gu-bei/config/application.properties
echo "yeepay.v2.apihost=http://192.168.4.241:10086/tzt-api/api/" >> /home/quant_group/gu-bei/config/application.properties
/home/qa-deploy-utils/qa_shell_script/5_restart_by_name.sh gu-bei
}
function unmock()
{
if [[ -a /home/quant_group/gu-bei/config/application.properties ]]; then
sed -i "/yeepay.v2.xyqb.merchant/d" /home/quant_group/gu-bei/config/application.properties
sed -i "/yeepay.v2.xyqb.privateKey/d" /home/quant_group/gu-bei/config/application.properties
sed -i "/yeepay.v2.xyqb.yeepay.publicKey/d" /home/quant_group/gu-bei/config/application.properties
sed -i "/yeepay.v2.apihost/d" /home/quant_group/gu-bei/config/application.properties
fi
/home/qa-deploy-utils/qa_shell_script/5_restart_by_name.sh gu-bei
}
if [[ $1 = "yes" ]]; then
mock
else
unmock
fi
#!/bin/bash
pwd_path="/home/qa-deploy-utils/qa_shell_script"
config_shell_path="$pwd_path"
config_server="$pwd_path/config_server"
filename=/home/quant_group/frp_0.12.0_linux_amd64/frpc_custom.ini
IP_host_first="192.168.4."
ips=`cat $config_server/get_env_ip.sh`
function addFileHead()
{
rm -rf $1
echo "[common]" >> $1
echo "server_addr = 127.0.0.1" >> $1
echo "server_port = 7000" >> $1
echo "privilege_token = 12345678" >> $1
echo " " >> $1
}
addFileHead $filename
function addFile()
{
echo "$1 $2 $3 $4"
echo "[web-$2-$1]" >> $4
echo "type = http" >> $4
echo "local_ip = 192.168.4.$1" >> $4
echo "local_port = $3" >> $4
echo "subdomain = $2-$1" >> $4
}
# projectAndPort=`node $config_server/get_project_config.js -type multi -attr port`
for ip_last in ${ips[@]}
do
projectAndPort=`node $config_server/get_project_config.js -type multi -attr port`
for projectAndPort in ${projectAndPort[@]}
do
var=${projectAndPort//|/ }
addFile $ip_last $var $filename
done
done
......@@ -57,7 +57,7 @@ function addFile()
# port=`node $config_server/get_project_config.js -name $project -attr port`
# addFile $project $port $filename
#done
projects_of_out_proxy=( activity-ui gu-bei activity-op op-api spider-center di-ting merchant-backend cash-loan-flow xyqb xyqb-quartz xyqb-query qgbc-ui bt-ui xyqb-user2 xyqb-ui xyqb-user-ui xyqb-mall )
projects_of_out_proxy=( AppBackend mall-ui ka-spider-center-ui activity-ui gu-bei activity-op op-api spider-center di-ting merchant-backend cash-loan-flow xyqb xyqb-quartz xyqb-query qgbc-ui bt-ui xyqb-user2 xyqb-ui xyqb-user-ui xyqb-mall )
for ip_last in ${ips[@]}
......
server_addr: ss.xyqb.loan:4443
trust_host_root_certs: false
tunnels:
xyqb-iplast:
proto:
http: "7003"
baitiao-iplast:
proto:
http: "7025"
xyqb-mall-iplast:
proto:
http: "7019"
xyqb-offline-iplast:
proto:
http: "7010"
xyqb-user2-iplast:
proto:
http: "7042"
di-ting-iplast:
proto:
http: "7005"
han-gu-guan-iplast:
proto:
http: "7013"
jian-men-guan-iplast:
proto:
http: "7015"
black-hole-iplast:
proto:
http: "7028"
gu-bei-iplast:
proto:
http: "7006"
xyqb-quartz-iplast:
proto:
http: "7023"
spider-center-iplast:
proto:
http: "7021"
cash-loan-flow-iplast:
proto:
http: "7037"
financial-system-iplast:
proto:
http: "7012"
fund-manage-iplast:
proto:
http: "7034"
gyxd-iplast:
proto:
http: "7029"
merchant-backend-iplast:
proto:
http: "7038"
redpacket-iplast:
proto:
http: "7031"
finance-api-iplast:
proto:
http: "7044"
check-accounts-iplast:
proto:
http: "7045"
du-jiang-yan-iplast:
proto:
http: "7014"
op-ui-iplast:
proto:
http: "7032"
activity-ui-iplast:
proto:
http: "7040"
financial-system-ui-iplast:
proto:
http: "7011"
gyxd-ui-iplast:
proto:
http: "7030"
offline-ui-iplast:
proto:
http: "7008"
funding-corp-op-ui-iplast:
proto:
http: "7035"
paycenter-ui-iplast:
proto:
http: "7007"
xyqb-user-ui-iplast:
proto:
http: "7043"
merchant-op-ui-iplast:
proto:
http: "7039"
di-ting-ui-iplast:
proto:
http: "7004"
spider-center-ui-iplast:
proto:
http: "7020"
qgbc-ui-iplast:
proto:
http: "7002"
xyqb-ui-iplast:
proto:
http: "7001"
activity-op-ui-iplast:
proto:
http: "7046"
order-op-ui-iplast:
proto:
http: "7048"
bt-ui-iplast:
proto:
http: "7050"
AppBackend-iplast:
proto:
http: "7018"
activity-op-iplast:
proto:
http: "7041"
op-api-iplast:
proto:
http: "7047"
fe-api-iplast:
proto:
http: "7049"
qin-qiong-iplast:
proto:
http: "7022"
xyqb-query-iplast:
proto:
http: "7033"
......@@ -2,6 +2,7 @@
function add_vhost()
{
/usr/lib/rabbitmq/bin/rabbitmqctl delete_vhost $1
/usr/lib/rabbitmq/bin/rabbitmqctl add_vhost $1
/usr/lib/rabbitmq/bin/rabbitmqctl set_permissions -p $1 qa ".*" ".*" ".*"
}
......@@ -90,11 +91,12 @@ add_queues mall refund
add_queues mall refundFeed
add_queues offline Test
add_queues orderstatus_vhost orderstatus_queue
add_queues sms confirm
add_queues sms confirmable
add_queues sms send
add_queues sms voiceconfirm
add_queues sms voiceconfirmable
add_queues sms appMsg
add_queues sms smsMsg
add_queues sms confirmMsg
add_queues sms thirdMsg
add_queues sms weChatMsg
add_queues sms smsOpMarket
add_queues spider_center SpiderSuccess
add_queues spider_center Test
add_queues xyqb_push TestEvents
......
......@@ -22,8 +22,6 @@ do
mkdir $dir/public
rm -rf $dir/public/java
mkdir $dir/public/java
rm -rf $dir/special
mkdir $dir/special
rm -rf $dir/public/node
mkdir $dir/public/node
......@@ -50,9 +48,6 @@ do
sed -i "s/ip_last/$ip_last_num/g" $dir/public/java/*
sed -i "s/ip_last/$ip_last_num/g" $dir/java/*
cp -rf /home/config_files/special/* $dir/special/
sed -i "s/iplast/${ip_last_num}/g" $dir/special/ngrok_confg.yml
#python项目发布
rm -rf $dir/python
......
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