Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
build.sh 685 Bytes
Copy Edit Raw Blame History
如梦技术 authored 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 助手
尝试更多
代码解读
代码找茬
代码优化