From 2d94553e66d3e14a90b9f06a0b5e051d7b0e48a3 Mon Sep 17 00:00:00 2001 From: kjh Date: Thu, 24 Oct 2024 12:25:08 +0900 Subject: [PATCH] =?UTF-8?q?docs=20:=20=EB=B0=B0=ED=8F=AC=20=EB=82=B4?= =?UTF-8?q?=EC=9A=A9=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 ++++++++++- sh/deploy.sh | 24 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 sh/deploy.sh 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