Commit 8a9fda5d authored by tywldx's avatar tywldx
parents c7c876b7 a7b1b134
This source diff could not be displayed because it is too large. You can view the blob instead.
#!/bin/bash
project_name=$1
is_public_ip=$2
ip=$3
pwd_path="/home/qa-deploy-utils/qa_shell_script"
config_shell_path="$pwd_path"
config_server="$pwd_path/config_server"
project_type=`node $config_server/get_project_config.js -name $project_name -attr type`
project_path=`cat $config_server/project_path.sh`
config_path=`cat $config_server/config_path.sh`
if [ -z "$project_name" ];then
echo "清输入项目名称"
exit -1
fi
cd $project_path/$project_name
echo `pwd`
if [ "$project_type" = "java" ]; then
sh $pwd_path/base_script/restartJava.sh $project_name $config_server $project_path $ip
# restartJavaProject $project_name $3
elif [ "$project_type" = "node" ]; then
sh $pwd_path/base_script/restartNode.sh $project_name $config_server $project_path $ip
# restartNodeProject $project_name $3
elif [ "$project_type" = "python" ]; then
sh $pwd_path/base_script/restartPython.sh $project_name $config_server $project_path $ip
# restartPythonProject $project_name $3
elif [ "$project_type" = "ui" ]; then
sh $pwd_path/base_script/restartUi.sh $project_name $config_server $project_path $ip
# restartUiProject $project_name $3
fi
......@@ -225,7 +225,7 @@ new pClass().init(1,true, "ui", "7084", "gdxd-op-ui", "ui", null, "src/config/en
new pClass().init(1,true, "ui", "7080", "new-mall-ui", "ui", null, "src/app/config/env.config.js", "npm run qa", "node7", "微信商城-ui", "郑少文,周珊", "", "");
new pClass().init(2,true, "ui", "7094", "cuishou_external", "data", null, "app/config/production.config.js", "npm run build", "node7", "催收对外平台-ui", "李斌", "", "");
new pClass().init(1,true, "ui", "7095", "fund-operate-ui", "ui", null, "src/config/env.config.js", "npm run qa", "node7", "资金运营系统-ui", "徐胜男", "", "");
new pClass().init(1,true, "ui", "9050", "pinjamancepat-credit-review-ui", "ui", null, "src/config/env.config.js", "npm run build", "", "mimi", "", "", "");
new pClass().init(1,true, "ui", "9050", "pinjamancepat-credit-review-ui", "ui", null, "src/config/env.config.js", "npm run qa", "", "mimi", "", "", "");
new pClass().init(1,true, "ui", "9051", "pinjamancepat-collection-ui", "ui", null, "src/config/env.config.js", "grunt build", "", "mimi", "", "", "");
// node
......
mysql -uqa -pqatest -e "set global innodb_large_prefix = ON;"
mysql -uqa -pqatest -e "set global innodb_file_format = BARRACUDA;"
sed -i "/innodb_file_format/d" /home/quant_group/mysql-5.6.31/my.cnf
sed -i "/innodb_file_per_table/d" /home/quant_group/mysql-5.6.31/my.cnf
sed -i "/innodb_large_prefix/d" /home/quant_group/mysql-5.6.31/my.cnf
echo "innodb_file_format=barracuda" >> /home/quant_group/mysql-5.6.31/my.cnf
echo "innodb_file_per_table=true" >> /home/quant_group/mysql-5.6.31/my.cnf
echo "innodb_large_prefix=true" >> /home/quant_group/mysql-5.6.31/my.cnf
use notify;
/*drop table if exists JOB_STATUS_TRACE_LOG;
CREATE TABLE `JOB_STATUS_TRACE_LOG` (
`id` varchar(40) NOT NULL,
`job_name` varchar(100) NOT NULL,
`original_task_id` varchar(255) NOT NULL,
`task_id` varchar(255) NOT NULL,
`slave_id` varchar(50) NOT NULL,
`source` varchar(50) NOT NULL,
`execution_type` varchar(20) NOT NULL,
`sharding_item` varchar(100) NOT NULL,
`state` varchar(20) NOT NULL,
`message` varchar(4000) DEFAULT NULL,
`creation_time` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `TASK_ID_STATE_INDEX` (`task_id`,`state`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
*/
drop table if exists notify_msg_log;
CREATE TABLE IF NOT EXISTS `notify_msg_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`notify_msg_id` bigint(20) NOT NULL,
`merchant_id` varchar(20) NOT NULL,
`notify_order_no` varchar(256) NOT NULL,
`response` text,
`http_status` int(10) DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `idx_notify_order_no` (`notify_order_no`),
KEY `idx_notify_msg_id` (`notify_msg_id`),
KEY `idx_created_at` (`created_at`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4605455 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
mysql -uqa -pqatest < /home/qa-deploy-utils/qa_shell_script/migrate_ENV/db_index_too_large_notify.sql
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