From addc2ebf7980084aba6364967704dd519dfd517d Mon Sep 17 00:00:00 2001 From: zzzzseong Date: Thu, 1 Feb 2024 12:20:17 +0900 Subject: [PATCH] =?UTF-8?q?fix(CI/CD):=20CD=20=EC=A4=84=EB=B0=94=EA=BF=88?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 7 ------- src/main/java/com/sportsecho/common/aop/TimeTraceAop.java | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index af80743a..f482566c 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -45,17 +45,11 @@ jobs: key: ${{ secrets.EC2_KEY }} script: | -# 실행중인 서버 다운 sudo docker-compose down - -# 백엔드 도커 이미지 삭제 sudo docker rmi ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROJECT_NAME }} - -# 백엔드 환경변수 파일 삭제 및 생성 sudo rm .env_b sudo touch .env_b -# 백엔드 환경변수 파일 작성 echo ADMIN_SECRET_KEY=${{ secrets.ADMIN_SECRET_KEY }} >> .env_b echo AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }} >> .env_b echo AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }} >> .env_b @@ -72,5 +66,4 @@ jobs: echo RDS_PASSWORD=${{ secrets.RDS_PASSWORD }} >> .env_b echo ${{ secrets.PORT }}:${{ secrets.PORT }} >> .env_b -# 백엔드 도커 이미지 pull 및 도커 컴포즈 실행 sudo docker-compose up -d \ No newline at end of file diff --git a/src/main/java/com/sportsecho/common/aop/TimeTraceAop.java b/src/main/java/com/sportsecho/common/aop/TimeTraceAop.java index f12a7f56..e02a5656 100644 --- a/src/main/java/com/sportsecho/common/aop/TimeTraceAop.java +++ b/src/main/java/com/sportsecho/common/aop/TimeTraceAop.java @@ -24,7 +24,7 @@ public void memberProduct() { public void purchase() { } - @Around("user() || memberProduct() || purchase()") + @Around("user()") public Object execute(ProceedingJoinPoint joinPoint) throws Throwable { long start = System.currentTimeMillis();