Commit 3cc4bad2 authored by 温海元's avatar 温海元

add qa-platform-ui

parent b9d07fcb
...@@ -5,21 +5,8 @@ target_ip='172.29.2.3' ...@@ -5,21 +5,8 @@ target_ip='172.29.2.3'
target_dir="/home/quant_group/${project_name}" target_dir="/home/quant_group/${project_name}"
deploy_dir="/home/quant_group/qa-deploy-utils" deploy_dir="/home/quant_group/qa-deploy-utils"
qaapi='http://172.30.220.22:3003'
git_path=`curl -s "${qaapi}/proconfig/get_info?system_name=${project_name}&key=git_path"`
build_command=`curl -s "${qaapi}/proconfig/get_info?system_name=${project_name}&key=build_command"`
cd ${deploy_dir} ssh ${target_user}@${target_ip} "cd ${target_dir} "
if [ ! -d "$deploy_dir" ];then
echo "not exist"
git clone ${git_path}
else
echo "exist"
git pull
fi
ssh ${target_user}@${target_ip} "cd /home/quant_group/qa-platform-ui "
ssh ${target_user}@${target_ip} "git pull" ssh ${target_user}@${target_ip} "git pull"
ssh ${target_user}@${target_ip} "npm install" ssh ${target_user}@${target_ip} "npm install"
ssh ${target_user}@${target_ip} "npm run build" ssh ${target_user}@${target_ip} "npm run build"
......
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