Skip to content

Commit

Permalink
Merge pull request #127 from MYONGSIK/infra/monitoring
Browse files Browse the repository at this point in the history
#122 prod log ํŒŒ์ผ ํ™˜๊ฒฝ ๊ตฌ์ถ• ์™„๋ฃŒ
  • Loading branch information
Qbeom0925 authored Jun 6, 2023
2 parents 565308c + d3e72c3 commit c251b1d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CD_Prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,16 @@
<appender-ref ref="FILE" />
</logger>
</springProfile>
<!-- prod ํ™˜๊ฒฝ -->
<springProfile name="prod">
<root level="DEBUG">
<!-- ์ฐธ์กฐํ•  appender - STDOUT -->
<appender-ref ref="STDOUT" />
</root>
<logger name="org.springframework.web" level="debug">
<!-- ์ฐธ์กฐํ•  appender - FILE -->
<appender-ref ref="FILE" />
</logger>
</springProfile>

</configuration>

0 comments on commit c251b1d

Please sign in to comment.