1 Star 0 Fork 47

davylau/tms-frontend

forked from 团购商城/tms-frontend 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
deploy2local.sh 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
团购商城 提交于 2021-09-20 20:21 . 界面优化...
#!/bin/bash
echo "deploy tms-frontend to tomcat start"
DEST=/Users/xiweicheng/Applications/apache-tomcat-8.5.59
SRC=/Users/xiweicheng/tms-frontend
echo "DEST DIR: $DEST"
echo "SRC DIR: $SRC"
echo "au pkg --env prod"
cd $SRC
au pkg --env prod
DT=`date +"%Y%m%d%H%M%S"`
mkdir -p $DEST/backup/tms-frontend/$DT
cp -rf $DEST/webapps/ROOT/WEB-INF/classes/static/page $DEST/backup/tms-frontend/$DT
echo "backup path: $DEST/backup/tms/tms-frontend/$DT"
echo "rm cdn & scripts & index.html & blog.html & mind.html & excel.html"
rm -rf $DEST/webapps/ROOT/WEB-INF/classes/static/page/cdn
rm -rf $DEST/webapps/ROOT/WEB-INF/classes/static/page/scripts
rm -rf $DEST/webapps/ROOT/WEB-INF/classes/static/page/index.html
rm -rf $DEST/webapps/ROOT/WEB-INF/classes/static/page/blog.html
rm -rf $DEST/webapps/ROOT/WEB-INF/classes/static/page/mind.html
rm -rf $DEST/webapps/ROOT/WEB-INF/classes/static/page/excel.html
rm -rf $DEST/webapps/ROOT/WEB-INF/classes/static/page/sheet.html
echo "cp tms-frontend to local tomcat"
cp -rf $SRC/cdn $DEST/webapps/ROOT/WEB-INF/classes/static/page
cp -rf $SRC/scripts $DEST/webapps/ROOT/WEB-INF/classes/static/page
cp -rf $SRC/index.html $DEST/webapps/ROOT/WEB-INF/classes/static/page
cp -rf $SRC/blog.html $DEST/webapps/ROOT/WEB-INF/classes/static/page
cp -rf $SRC/mind.html $DEST/webapps/ROOT/WEB-INF/classes/static/page
cp -rf $SRC/excel.html $DEST/webapps/ROOT/WEB-INF/classes/static/page
cp -rf $SRC/sheet.html $DEST/webapps/ROOT/WEB-INF/classes/static/page
sh $DEST/bin/shutdown.sh
sleep 5
sh $DEST/bin/startup.sh
echo "deploy tms-frontend to tomcat end"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/laudavy/tms-frontend.git
git@gitee.com:laudavy/tms-frontend.git
laudavy
tms-frontend
tms-frontend
master

搜索帮助