From f84b6ad91f5700fe2f9d173ce8c9d5b5343d33bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=84=EB=8F=99=ED=98=84?= Date: Sun, 10 Dec 2023 18:06:45 +0900 Subject: [PATCH] =?UTF-8?q?Feat/#74=20logging=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20(#75)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: docker 배포 테스트 * feat: docker 배포 테스트 * feat: docker 배포 테스트 * feat: docker 배포 테스트 * feat: 로깅 설정 변경 --- .github/workflows/be-deploy.yml | 5 +---- src/main/resources/application.yml | 4 +++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/be-deploy.yml b/.github/workflows/be-deploy.yml index 1560fc3..e2c89cc 100644 --- a/.github/workflows/be-deploy.yml +++ b/.github/workflows/be-deploy.yml @@ -6,9 +6,6 @@ on: env: WORKING_DIRECTORY: ./ - CODE_DEPLOY_APPLICATION_NAME: cicd - CODE_DEPLOY_DEPLOYMENT_GROUP_NAME: cicd - S3_BUCKET_NAME: yg-img-storage jobs: build: @@ -60,5 +57,5 @@ jobs: sudo docker rm -f hifit-ecr sudo aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | sudo docker login --username AWS --password-stdin ${{ secrets.DOCKER_USERNAME }} sudo docker pull ${{ secrets.DOCKER_USERNAME }}/hifit-ecr:latest - sudo docker run -d --name hifit-ecr -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}/hifit-ecr:latest + sudo docker run -d --name hifit-ecr -p 8080:8080 -v /home/ubuntu/be-log:/var/log ${{ secrets.DOCKER_USERNAME }}/hifit-ecr:latest sudo docker image prune -a -f diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 5ed4178..678cc7b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -24,4 +24,6 @@ logging: SQL: DEBUG type: descriptor: - sql: trace \ No newline at end of file + sql: trace + file: + path: /var/log/server.log \ No newline at end of file