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