1 Star 0 Fork 644

芝华塔尼欧/tms

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
deploy2local.sh 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
echo "deploy tms to tomcat start"
DEST=/Users/xiweicheng/Applications/apache-tomcat-8.5.59
SRC=/Users/xiweicheng/tms
echo "DEST DIR: $DEST"
echo "SRC DIR: $SRC"
echo "mvn clean compile"
mvn clean compile
DT=`date +"%Y%m%d%H%M%S"`
mkdir -p $DEST/backup/tms/$DT
cp -rf $DEST/webapps/ROOT/WEB-INF/classes/com $DEST/backup/tms/$DT
cp -rf $DEST/webapps/ROOT/WEB-INF/classes/static $DEST/backup/tms/$DT
cp -rf $DEST/webapps/ROOT/WEB-INF/classes/templates $DEST/backup/tms/$DT
echo "backup path: $DEST/backup/tms/$DT"
echo "rm com & static & templates"
rm -rf $DEST/webapps/ROOT/WEB-INF/classes/com
rm -rf $DEST/webapps/ROOT/WEB-INF/classes/static
rm -rf $DEST/webapps/ROOT/WEB-INF/classes/templates
echo "cp tms to local tomcat"
cp -rf $SRC/target/classes/com $DEST/webapps/ROOT/WEB-INF/classes
cp -rf $SRC/src/main/resources/static $DEST/webapps/ROOT/WEB-INF/classes
cp -rf $SRC/src/main/resources/templates $DEST/webapps/ROOT/WEB-INF/classes
sh $DEST/bin/shutdown.sh
sleep 5
sh $DEST/bin/startup.sh
echo "deploy tms to tomcat end"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yxm_yxm_admin/tms.git
git@gitee.com:yxm_yxm_admin/tms.git
yxm_yxm_admin
tms
tms
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385