You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
873 B
Bash

echo "1.remove...."
rm -r /DATA/was/phts-manager/*
echo "2.file move...."
cp /DATA/was/deploy-app/phts-manager/war/module-post-0.0.1-SNAPSHOT.war /DATA/was/phts-manager/phts-manager.war
echo "3.unzip..."
cd /DATA/was/phts-manager/
jar xvf ./phts-manager.war
echo "4.add jar..."
cp /DATA/was/deploy-app/phts-manager/lib/tomcat-juli-8.5.4.jar /DATA/was/phts-manager/WEB-INF/lib/
cp /DATA/was/deploy-app/phts-manager/lib/javaee.jar /DATA/was/phts-manager/WEB-INF/lib/
#cp /was/deploy-app/phts-manager/lib/ojdbc8.jar /was/phts-manager/WEB-INF/lib/
#echo "5.remove jar..."
#rm -r /was/phts-manager/WEB-INF/lib/log4j-api-*.jar
#rm -r /was/phts-manager/WEB-INF/lib/log4j-to-slf4j-*.jar
#rm -r /was/phts-manager/WEB-INF/lib/tomcat-embed*.jar
#rm -r /was/phts-manager/WEB-INF/lib-provided/tomcat-embed*.jar
#echo "5.redis start..."
#java -jar ./war/redis-0.0.1-SNAPSHOT.jar