From d3e72c30a202ff9d1d61047e99d865f23c0aa031 Mon Sep 17 00:00:00 2001 From: kyubeom Date: Tue, 6 Jun 2023 22:16:43 +0900 Subject: [PATCH] =?UTF-8?q?#122=20prod=20log=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=20=EA=B5=AC=EC=B6=95=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD_Prod.yml | 2 +- src/main/resources/logback-spring.xml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CD_Prod.yml b/.github/workflows/CD_Prod.yml index a510b5f..478d272 100644 --- a/.github/workflows/CD_Prod.yml +++ b/.github/workflows/CD_Prod.yml @@ -78,7 +78,7 @@ jobs: docker stop myongsik_prod1 docker rm myongsik_prod1 sudo docker pull ${{ secrets.DOCKER_USERNAME }}/myongsik - sudo docker run -d --name myongsik_prod1 -v /etc/localtime:/etc/localtime:ro -e JAVA_OPTS=-Djasypt.encryptor.password=${{ secrets.YML_PASSWORD }} -e TZ=Asia/Seoul -e ENVIRONMENT_VALUE=-Dspring.profiles.active=prod -p 8085:8080 ${{ secrets.DOCKER_USERNAME }}/myongsik:latest + sudo docker run -d --name myongsik_prod1 -v /var/log/app:/var/log/app -v /etc/localtime:/etc/localtime:ro -e JAVA_OPTS=-Djasypt.encryptor.password=${{ secrets.YML_PASSWORD }} -e TZ=Asia/Seoul -e ENVIRONMENT_VALUE=-Dspring.profiles.active=prod -p 8085:8080 ${{ secrets.DOCKER_USERNAME }}/myongsik:latest docker rmi -f $(docker images -f "dangling=true" -q) # 10) Deploy (PROD2) diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index ae5e0fa..7743a59 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -55,5 +55,16 @@ + + + + + + + + + + + \ No newline at end of file