Commit 32fb5585 authored by guozhipeng's avatar guozhipeng

修改部署命令

parent 59625f52
...@@ -155,24 +155,24 @@ common(){ ...@@ -155,24 +155,24 @@ common(){
echo -e "\033[30;42m 登录BTP test 子账户 输入密码: Gzp@123456 后回车 \033[0m" echo -e "\033[30;42m 登录BTP test 子账户 输入密码: Gzp@123456 后回车 \033[0m"
# 登录BTP命令: # 登录BTP命令:
cf login -a https://api.cf.cn40.platform.sapcloud.cn -o "Shenzhen-Lianchuangjie-Technology-Co-Ltd-test-cnrc164l" -s gzpTest -u zhipeng.guo@boscloud.cn cf login -a https://api.cf.cn40.platform.sapcloud.cn -o "Shenzhen-Lianchuangjie-Technology-Co-Ltd-test-cnrc164l" -s gzpTest -u zhipeng.guo@boscloud.cn
#exit 1
fi fi
echo "已登录成功!" echo "${account}"
echo "子账户已登录成功!"
#删除部署文件 #删除部署文件
echo -e "\033[30;42m 删除部署文件gen/mta.mtar,请稍后。。。 \033[0m" echo -e "\033[30;42m rm -rf gen/mta.mtar 部署文件删除中,请稍后。。。 \033[0m"
starttime10=`date +%s` starttime10=`date +%s`
secondsToTime ${starttime} ${starttime10} secondsToTime ${starttime} ${starttime10}
rm -rf gen/mta.mtar rm -rf gen/mta.mtar
#编译代码并发布 #清空编译文件
#echo -e "\033[30;42m 编译CDS文件为Java类->打包,请稍后。。。 \033[0m" echo -e "\033[30;42m mvn clean 编译文件清空中,请稍后。。。 \033[0m"
#starttime11=`date +%s` starttime11=`date +%s`
#secondsToTime ${starttime} ${starttime11} secondsToTime ${starttime} ${starttime11}
#mvn clean install mvn clean
# 使用mbt build组装 # 使用mbt build组装
echo -e "\033[30;42m 使用mbt build组装 \033[0m" echo -e "\033[30;42m mbt build -t gen --mtar mta.mtar 部署文件组装中,请稍后。。。 \033[0m"
starttime1=`date +%s` starttime1=`date +%s`
secondsToTime ${starttime} ${starttime1} secondsToTime ${starttime} ${starttime1}
mbt build -t gen --mtar mta.mtar mbt build -t gen --mtar mta.mtar
...@@ -185,7 +185,7 @@ common(){ ...@@ -185,7 +185,7 @@ common(){
## ${url}/webSocket/sendSystemMessage?appKey=0d693250-4a96-4c3e-b6ef-fd036207baa8 ## ${url}/webSocket/sendSystemMessage?appKey=0d693250-4a96-4c3e-b6ef-fd036207baa8
# Deploy to Cloud 部署到云 # Deploy to Cloud 部署到云
echo -e "\033[30;42m Deploy to Cloud 部署到云 \033[0m" echo -e "\033[30;42m cf deploy gen/mta.mtar 部署文件部署中,请稍后。。。 \033[0m"
starttime2=`date +%s` starttime2=`date +%s`
secondsToTime ${starttime} ${starttime2} secondsToTime ${starttime} ${starttime2}
cf deploy gen/mta.mtar cf deploy gen/mta.mtar
......
...@@ -170,7 +170,7 @@ cf login -a https://api.cf.cn40.platform.sapcloud.cn -o "Shenzhen-Lianchuangjie- ...@@ -170,7 +170,7 @@ cf login -a https://api.cf.cn40.platform.sapcloud.cn -o "Shenzhen-Lianchuangjie-
使用批处理命令部署到云服务器,该批处理已经包含了 mbt build -t gen --mtar mta.mtar 和 cf deploy gen/mta.mtar: 使用批处理命令部署到云服务器,该批处理已经包含了 mbt build -t gen --mtar mta.mtar 和 cf deploy gen/mta.mtar:
部署总时长大概13分钟左右。 部署总时长大概9分钟左右。
![1739633442811](image/mtaReadme/1739633442811.png) ![1739633442811](image/mtaReadme/1739633442811.png)
......
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