1 Star 0 Fork 629

gfansenhua/tms

forked from 团购商城/tms 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
deploy2local.sh 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
团购商城 提交于 2021-04-18 09:27 . Update deploy2local.sh
#!/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"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/fansenhua/tms.git
git@gitee.com:fansenhua/tms.git
fansenhua
tms
tms
master

搜索帮助