deploy.sh 320 B

12345678910
  1. #!/bin/sh
  2. export JAVA_HOME=/usr/java/jdk1.7.0_75
  3. kill -9 $(ps -aef | grep tomcat/conf | grep -v grep | awk '{print $2}')
  4. cd /app/programs/tomcat_test1/webapps
  5. mv ROOT.war ROOT_`date +%Y%m%d%H%M%S`.war.bak
  6. #rm -rf ROOT
  7. mv /app/programs/temp/mvcDemo3*-SNAPSHOT.war ROOT.war
  8. cd /app/programs/tomcat_test1/bin
  9. ./startup.sh