2016年(22)
分类: LINUX
2016-04-26 19:52:15
HOST=127.0.0.1
USER=mac
TOMCAT_ROOT=/usr/local/tomcat
mvn clean package -Dmaven.test.skip=true
ssh -p 9000 $USER@$HOST "source /etc/profile;${TOMCAT_ROOT}/bin/shutdown.sh; rm -Rf ${TOMCAT_ROOT}/webapps/*"
scp -P 9000 target/portal.war ${USER}@${HOST}:${TOMCAT_ROOT}/webapps/
ssh -p 9000 $USER@$HOST "source /etc/profile;${TOMCAT_ROOT}/bin/startup.sh"