diff --git a/README.md b/README.md index b6382ef..f9ae6cd 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,17 @@ annotations, java 폴더가 Excluded 상태인데 마우스 우클릭해서 Sour ### 배포 ```text -[민자] +[war 생성] mvn clean package -P prod + +[서버 war 반영] +경로 : /DATA/was/deploy-app/phts-manager/war +war명 : module-post-0.0.1-SNAPSHOT.war + +[실행] +시작 : phts-manager_boot +종료 : phts-manager_down +참고 : deploy.sh ``` ### 업무 diff --git a/sh/deploy.sh b/sh/deploy.sh new file mode 100644 index 0000000..e68469c --- /dev/null +++ b/sh/deploy.sh @@ -0,0 +1,24 @@ + +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