1 Star 0 Fork 1.1K

陈天元/spring-shiro-training

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
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....."
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/arthaschan/spring-shiro-training.git
git@gitee.com:arthaschan/spring-shiro-training.git
arthaschan
spring-shiro-training
spring-shiro-training
master

搜索帮助