Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lcj-btp-java-app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭智朋
lcj-btp-java-app
Commits
32fb5585
Commit
32fb5585
authored
Feb 16, 2025
by
guozhipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部署命令
parent
59625f52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
mtaDeploy.sh
mtaDeploy.sh
+10
-10
mtaReadme.md
mtaReadme.md
+1
-1
No files found.
mtaDeploy.sh
View file @
32fb5585
...
...
@@ -155,24 +155,24 @@ common(){
echo
-e
"
\0
33[30;42m 登录BTP test 子账户 输入密码: Gzp@123456 后回车
\0
33[0m"
# 登录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
#exit 1
fi
echo
"已登录成功!"
echo
"
${
account
}
"
echo
"子账户已登录成功!"
#删除部署文件
echo
-e
"
\0
33[30;42m
删除部署文件gen/mta.mtar
,请稍后。。。
\0
33[0m"
echo
-e
"
\0
33[30;42m
rm -rf gen/mta.mtar 部署文件删除中
,请稍后。。。
\0
33[0m"
starttime10
=
`
date
+%s
`
secondsToTime
${
starttime
}
${
starttime10
}
rm
-rf
gen/mta.mtar
#
编译代码并发布
#echo -e "\033[30;42m 编译CDS文件为Java类->打包
,请稍后。。。 \033[0m"
#
starttime11=`date +%s`
#
secondsToTime ${starttime} ${starttime11}
#mvn clean install
#
清空编译文件
echo
-e
"
\0
33[30;42m mvn clean 编译文件清空中
,请稍后。。。
\0
33[0m"
starttime11
=
`
date
+%s
`
secondsToTime
${
starttime
}
${
starttime11
}
mvn clean
# 使用mbt build组装
echo
-e
"
\0
33[30;42m
使用mbt build组装
\0
33[0m"
echo
-e
"
\0
33[30;42m
mbt build -t gen --mtar mta.mtar 部署文件组装中,请稍后。。。
\0
33[0m"
starttime1
=
`
date
+%s
`
secondsToTime
${
starttime
}
${
starttime1
}
mbt build
-t
gen
--mtar
mta.mtar
...
...
@@ -185,7 +185,7 @@ common(){
## ${url}/webSocket/sendSystemMessage?appKey=0d693250-4a96-4c3e-b6ef-fd036207baa8
# Deploy to Cloud 部署到云
echo
-e
"
\0
33[30;42m
Deploy to Cloud 部署到云
\0
33[0m"
echo
-e
"
\0
33[30;42m
cf deploy gen/mta.mtar 部署文件部署中,请稍后。。。
\0
33[0m"
starttime2
=
`
date
+%s
`
secondsToTime
${
starttime
}
${
starttime2
}
cf deploy gen/mta.mtar
...
...
mtaReadme.md
View file @
32fb5585
...
...
@@ -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:
部署总时长大概
13
分钟左右。
部署总时长大概
9
分钟左右。

...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment