tomcat部署Spring boot后台和iView前端

2018-06-01  本文已影响457人  十一岁的加重

处理tomcat


image.png
image.png

当前窗口运行


image.png
后台运行
image.png

说明tomcat启动


image.png

停止前台

control c

停止后台

./catalina.sh stop

后台


image.png image.png

前端


image.png 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

上一篇 下一篇

猜你喜欢

热点阅读