Commit b9d07fcb authored by 温海元's avatar 温海元

add qa-platform-ui

parent 78396c14
......@@ -3,33 +3,20 @@ project_name=$1
target_user='root'
target_ip='172.29.2.3'
target_dir="/home/quant_group/${project_name}"
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"`
# if [ ! -d "$project_name" ];then
# echo "not exist"
# git clone ${git_path}
# cd ./${project_name}
# ssh ${target_user}@${target_ip} "mkdir -p ${target_dir}/"
# else
# echo "exist"
# cd ./${project_name}
# git pull
# fi
# npm install
# npm run build
# supervisorctl restart ${project_name}
# tar zcf ${tag}.dist.tgz ./dist/
# scp ${tag}.dist.tgz ${target_user}@${target_ip}:${target_dir}
# ssh ${target_user}@${target_ip} "mkdir -p ${target_dir}/${tag}"
# ssh ${target_user}@${target_ip} "tar zxf ${target_dir}/${tag}.dist.tgz -C /${target_dir}/${tag}"
# ssh ${target_user}@${target_ip} "rm -rf ${target_dir}/dist"
# ssh ${target_user}@${target_ip} "ln -s ${target_dir}/${tag}/dist/ ${target_dir}/dist"
# ssh ${target_user}@${target_ip} "rm -rf ${target_dir}/*.dist.tgz"
cd ${deploy_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 "
......
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