tomcat部署Spring boot后台和iView前端

处理tomcat


tomcat部署Spring boot后台和iView前端_第1张图片
image.png

tomcat部署Spring boot后台和iView前端_第2张图片
image.png

当前窗口运行


image.png

后台运行
image.png

说明tomcat启动


tomcat部署Spring boot后台和iView前端_第3张图片
image.png

停止前台

control c

停止后台

./catalina.sh stop

后台


tomcat部署Spring boot后台和iView前端_第4张图片
image.png
tomcat部署Spring boot后台和iView前端_第5张图片
image.png

前端


tomcat部署Spring boot后台和iView前端_第6张图片
image.png
tomcat部署Spring boot后台和iView前端_第7张图片
image.png

jenkins自动化

rm -rf productionPackage
mkdir productionPackage
cd abtest_spring
rm -rf target
if ! [ -x "$(command -v mvn)" ]; then
echo 'Your computer does not have the maven command installed' >&2
#exit 1
brew install maven
else
mvn install
fi
cd target
rename 's/-0.0.1-SNAPSHOT//' abtest-0.0.1-SNAPSHOT.war
mv abtest.war ../../productionPackage
cd ../../
cd iview_ABTest
rm -rf node_modules
npm install
rm -rf dist
rm -rf index.html
rm -rf index_prod.html
npm run build
if ! [ -x "$(command -v rename)" ]; then
echo 'Your computer does not have the rename command installed' >&2
#exit 1
brew install rename
else
rename 's/_prod//' index_prod.html
fi
mv index.html ../productionPackage
mv dist ../productionPackage

你可能感兴趣的:(tomcat部署Spring boot后台和iView前端)