Commit 52ead0a6 authored by daidekun's avatar daidekun
parents dbd4f37e 41c68ee8
......@@ -19,6 +19,7 @@ function restartJavaProject()
ack_phrase="Started\ Bootstrap"
project=$1
desc=`node $config_server/get_project_config.js -name $project -attr desc`
run_command=`node $config_server/get_project_config.js -name $project -attr command`
sh $config_server/show_info.sh $project 重新启动 $desc $2
cd $project_path/$project
P_UUID=`ps -ef|grep ${project}.jar |grep -v 'grep'|awk '{print $2}'`
......@@ -47,23 +48,24 @@ function restartJavaProject()
fi
fi
echo "-----project:$project while be run command: java -Xmx256m -XX:PermSize64m -Xloggc:/tmp/${project}.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${project}.jar --worker 1 --currentWorker 1 -t > /dev/null 2>&1 &"
echo "-----project:$project while be start"
log_name=`node $config_server/get_project_config.js -name $project -attr log_name`
mv $project_path/logs/$log_name $project_path/logs/$project.log.$time
echo "$run_command"
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
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
# 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 &`
#sleep 30s
ack "$ack_phrase" $project_path/logs/$log_name ${max_wait_log_generate_time} ${max_wait_ack_time}
if [ $? -ne 0 ]
then
echo "Fail to start"
echo "Fail to start"
fi
}
......
......@@ -22,6 +22,7 @@ function restartJavaProject()
for project in ${projects[@]}
do
desc=`node $config_server/get_project_config.js -name $project -attr desc`
run_command=`node $config_server/get_project_config.js -name $project -attr command`
sh $config_server/show_info.sh $project 重新启动 $desc $1
cd $project_path/$project
P_UUID=`ps -ef|grep ${project}.jar |grep -v 'grep'|awk '{print $2}'`
......@@ -48,14 +49,8 @@ function restartJavaProject()
fi
fi
echo "-----project:$project while be run command: java -Xmx256m -XX:PermSize64m -Xloggc:/tmp/${project}.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${project}.jar --worker 1 --currentWorker 1 -t > /dev/null 2>&1 &"
#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 &`
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
echo "$run_command"
echo `$run_command`
sleep 10s
#ack "$ack_phrase" $project_path/logs/$log_name ${max_wait_log_generate_time} ${max_wait_ack_time}
......
12 13 14 15 16 17 22 23 24 25 26 28 50 72 151 152 153 154 155 156 158 160 161 162 163 164
12 13 14 15 16 17 22 23 24 25 26 28 46 50 72 151 152 153 154 155 156 158 160 161 162 163 164
......@@ -16,20 +16,20 @@ var users = [{}, {
pwd: "12345678"
}];
var pClass = function() {};
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) {
this.name = projectName;
this.type = projectType;
if (!ssh_git){
if (!ssh_git) {
this.git_path = "http://" + users[userIndex].name + ":" + users[userIndex].pwd + "@gitabc.xyqb.com/" + gitPath + "/" + projectName + ".git"
}else{
this.git_path = gitPath
} else {
this.git_path = "git@gitabc.xyqb.com:" + gitPath + "/" + projectName + ".git"
}
this.log_name = logName;
this.config_file = configFile;
this.command = command;
this.command = "";
this.command2 = command2;
this.node_version = nodeVersion;
this.port = port;
......@@ -38,91 +38,97 @@ pClass.prototype = {
this.auth = auth;
projects[projectName] = this;
switch (projectType) {
case "java":
java_projects.push(this);
break;
case "node":
node_projects.push(this);
break;
case "ui":
ui_projects.push(this);
break;
case "python":
python_projects.push(this);
break;
case "java":
this.command = "java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/" + projectName + ".log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar " + projectName + ".jar " + command;
java_projects.push(this);
break;
case "node":
this.command = command;
node_projects.push(this);
break;
case "ui":
this.command = command;
ui_projects.push(this);
break;
case "python":
this.command = command;
python_projects.push(this);
break;
}
}
}
// projectName,projectType,port,gitPath,logName,configFile,command,nodeVersion false,
new pClass().init(true, "java", "7003", "xyqb", false, "QG", "xyqb.log", "application.properties", null, null, 2, "现金贷-server","");
new pClass().init(true, "java", "7025", "baitiao", true, "git@gitabc.xyqb.com:baitiao/baitiao.git", "baitiao.log", "application.properties", null, null, 2, "白条-server","");
new pClass().init(true, "java", "7019", "xyqb-mall", false, "QG", "mall.log", "application.properties", null, null, 2, "商城后台-server","");
new pClass().init(true, "java", "7010", "xyqb-offline", false, "QG", "xyqb_offline.log", "application.properties", null, null, 2, "线下业务-server","");
new pClass().init(true, "java", "7042", "xyqb-user2", true, "git@gitabc.xyqb.com:head_group/xyqb-user2.git", "xyqb_user.log", "application.properties", null, null, 2, "用户注册登录-V2-server","");
new pClass().init(true, "java", "7005", "di-ting", false, "QG", "di_ting.log", "application.properties", null, null, 2, "风控审计-server","");
new pClass().init(true, "java", "7013", "han-gu-guan", false, "QG", "han-gu-guan.log", "application.properties", null, null, 2, "用户注册登录-V1-server","");
new pClass().init(true, "java", "7015", "jian-men-guan", false, "QG", "jian_men_guan.log", "application.properties", null, null, 2, "信审服务-server","");
new pClass().init(true, "java", "7028", "black-hole", false, "QG", "black-hole.log", "application.properties", null, null, 2, "合同中心-server","");
new pClass().init(true, "java", "7006", "gu-bei", false, "QG", "pay-center.log", "application.properties", null, null, 2, "支付中心-server","");
new pClass().init(true, "java", "7023", "xyqb-quartz", false, "QG", "quartz.log", "application.properties", null, null, 2, "定时任务-server","");
new pClass().init(true, "java", "7021", "spider-center", false, "QG", "spider-center.log", "application.properties", null, null, 2, "授信-server","");
new pClass().init(true, "java", "7037", "cash-loan-flow", false, "QG", "cash_loan_flow.log", "application.properties", null, null, 2, "现金贷流量对接-server","");
new pClass().init(true, "java", "7012", "financial-system", false, "QG", "financial_system.log", "application.properties", null, null, 2, "财务系统-server","");
new pClass().init(false, "java", "7034", "fund-manage", false, "QG", "fund_manage.log", "application.properties", null, null, 2, "债转系统-server","");
new pClass().init(false, "java", "7029", "gyxd", false, "QG", "gyxd.log", "application.properties", null, null, 2, "广源小贷-server","");
new pClass().init(true, "java", "7038", "merchant-backend", false, "QG", "merchant.log", "application.properties", null, null, 2, "商户后台-server","凌子华/陈东亮");
new pClass().init(true, "java", "7031", "redpacket", false, "QG", "redpacket.log", "application.properties", null, null, 2, "红包系统-server","");
new pClass().init(false, "java", "7044", "finance-api", false, "bo.wang", "finance-api.log", "application.properties", null, null, 2, "财务系统-server","");
new pClass().init(false, "java", "7045", "check-accounts", false, "QG", "check_accounts.log", "application.properties", null, null, 2, "对账系统-server","");
new pClass().init(true, "java", "7014", "du-jiang-yan", false, "QG", "du_jiang_yan.log", "application.properties", null, null, 2, "第三方对接导流-server","");
new pClass().init(false, "java", "7051", "msg", false, "QG", "msg.log", "application.properties", null, null, 2, "新版消息中心","");
new pClass().init(false, "java", "7052", "xyqb-btzt", true, "git@gitabc.xyqb.com:qg-op-backend/xyqb-btzt.git", "xyqb-btzt.log", "application.properties", null, null, 2, "白条直投外部","");
new pClass().init(false, "java", "7053", "xyqb-btzt-internal", true, "git@gitabc.xyqb.com:qg-op-backend/xyqb-btzt-internal.git", "xyqb-btzt-internal.log", "application.properties", null, null, 2, "白条直投内部","");
new pClass().init(false, "java", "7060", "xyqb-backend", true, "git@gitabc.xyqb.com:qg-op-backend/xyqb-backend.git", "xyqb-backend.log", "application.properties", null, null, 2, "运营系统服务","");
new pClass().init(true, "java", "7062", "xyqb-user2-query", true, "git@gitabc.xyqb.com:head_group/xyqb-user2-query.git", "xyqb_user_query.log", "application.properties", null, null, 2, "用户系统查询服务","");
new pClass().init(false, "java", "7063", "traffic-webapp", true, "git@gitabc.xyqb.com:qg-op-backend/traffic-webapp.git", "traffic.log", "application.properties", null, null, 2, "流量分发系统","");
// --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(true,"java","7027","sms-center","QG","sms-center.log",null,null,null,"短信中心-server");
// ui----
// projectName,projectType,port,gitPath,logName,configFile,command,nodeVersion
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", "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, "git@gitabc.xyqb.com:ui/mall-ui.git", 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, "git@gitabc.xyqb.com:ui/wind-control-op-ui.git", null, "src/app/config/env.config.js", "npm run qa", "node7", 1, "临时项目,未来删除风控平台-ui","");
new pClass().init(false, "ui", "7016", "flow-op-ui", true, "git@gitabc.xyqb.com:ui/flow-op-ui.git", null, "src/config/env.config.js", "npm start", "node7", 1, "","");
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", "郑少文");
// 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, "git@gitabc.xyqb.com:OP/statistics.git", 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 = "";
process.argv.forEach(function(val, index, array) {
process.argv.forEach(function (val, index, array) {
if (index >= 2) {
if (index % 2 == 0) {
temp = val.replace(/\-/, "");
......@@ -136,32 +142,32 @@ 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(" ");
}
var configFunction = function() {};
var configFunction = function () {};
configFunction.prototype = {
getProjectAttr: function(pName, pAttr) {
if (typeof projects[pName] == "undefined") {
console.log("")
} else {
if (typeof projects[pName][pAttr] == "undefined") {
getProjectAttr: function (pName, pAttr) {
if (typeof projects[pName] == "undefined") {
console.log("")
} else {
if(projects[pName][pAttr]){
console.log(projects[pName][pAttr])
}else{
if (typeof projects[pName][pAttr] == "undefined") {
console.log("")
} else {
if (projects[pName][pAttr]) {
console.log(projects[pName][pAttr])
} else {
console.log("")
}
}
}
}
},
getProjectsAttr: function(type, attr) {
switch (type) {
},
getProjectsAttr: function (type, attr) {
switch (type) {
case "java":
console.log(getListAttr(java_projects, attr));
break;
......@@ -174,8 +180,8 @@ configFunction.prototype = {
case "node":
console.log(getListAttr(node_projects, attr));
break;
}
}
}
}
var F = new configFunction();
......@@ -183,4 +189,4 @@ if (param["type"] == "") {
F.getProjectAttr(param["name"], param["attr"]);
} else {
F.getProjectsAttr(param["type"], param["attr"]);
}
}
\ No newline at end of file
......@@ -117,7 +117,7 @@ tranceConfig java "xyqb.is.debug=0" "xyqb.is.debug=1" "192.168.4.23" "baitiao.pr
#4.24
#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 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"
#4.151
......
......@@ -29,6 +29,7 @@ add_vhost /funding
add_vhost /loan_order
add_vhost baitiao_debt
add_vhost financial_system
add_vhost feature
add_vhost mall
add_vhost offline
add_vhost orderstatus_vhost
......@@ -62,6 +63,7 @@ add_exchange backend backend_message_rewrite_exc direct
add_exchange backend backend_file_exc direct
add_exchange /funding async direct
add_exchange spider_center feature_save direct
add_exchange feature feature_save direct
#add queues
......@@ -115,6 +117,7 @@ add_queues baitiao_debt xyqb_baitiao_queue
add_queues /black_hole generate_auth_success
add_queues /black_hole waiting_auth_generate
add_queues spider_center feature_calculate
add_queues feature feature_calculate
#add bindings
add_binding backend backend_message_rewrite_exc backend_message_rewrite_queue backend_message_rewrite_route
......
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