1 Star 0 Fork 1.1K

HYH / spring-shiro-training

forked from 轩少 / spring-shiro-training 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.sh 685 Bytes
一键复制 编辑 原始数据 按行查看 历史
如梦技术 提交于 2016-11-22 20:01 . update
#!/bin/sh
git_path="/home/work/git/spring-shiro-training"
war_path=$git_path"/target/shiro.war"
pro_path="/home/work/shiro.dreamlu.net"
tom_bin="/home/work/tomcat/tomcat-shiro/bin"
echo "goto..."$git_path
cd $git_path
echo "git...pull...begin..."
git pull
echo "git...pull...end..."
echo "build...war...begin..."
mvn clean -U package -DskipTests -Pproduction > /dev/null
echo "build...war...end..."
unzip -o $war_path -d $pro_path > /dev/null
echo "unzip...war...end..."
echo "tomcat...reload...begin..."
sh $tom_bin"/shutdown.sh"
# kill -9 `ps aux|grep tomcat-shiro |grep -v grep |grep java |awk '{print $2}'`
# sleep 1
sh $tom_bin"/startup.sh"
echo "tomcat...reload...end....."
Java
1
https://gitee.com/hyhup/spring-shiro-training.git
git@gitee.com:hyhup/spring-shiro-training.git
hyhup
spring-shiro-training
spring-shiro-training
master

搜索帮助