diff --git a/.github/workflows/dev-deploy.yml b/.github/workflows/dev-deploy.yml index 1655d46..d58a8eb 100644 --- a/.github/workflows/dev-deploy.yml +++ b/.github/workflows/dev-deploy.yml @@ -84,6 +84,7 @@ jobs: uses: burnett01/rsync-deployments@4.1 with: switches: -avzr --delete + path: ./config remote_path: ./dev remote_host: ${{ secrets.HOST_DEV }} remote_user: ${{ secrets.USER_DEV }} diff --git a/.github/workflows/prod-deploy.yml b/.github/workflows/prod-deploy.yml index 80d3054..ee3208e 100644 --- a/.github/workflows/prod-deploy.yml +++ b/.github/workflows/prod-deploy.yml @@ -89,6 +89,7 @@ jobs: uses: burnett01/rsync-deployments@4.1 with: switches: -avzr --delete + path: ./config remote_path: ./prod remote_host: ${{ secrets.HOST_PROD }} remote_user: ${{ secrets.USER_PROD }} diff --git a/src/main/java/Ness/Backend/infra/discord/DiscordMessageGenerator.java b/src/main/java/Ness/Backend/infra/discord/DiscordMessageGenerator.java index aa52677..935770d 100644 --- a/src/main/java/Ness/Backend/infra/discord/DiscordMessageGenerator.java +++ b/src/main/java/Ness/Backend/infra/discord/DiscordMessageGenerator.java @@ -33,6 +33,9 @@ public DiscordMessageDto createMessage(Exception exception, HttpServletRequest h + "### 🔗 요청 엔드포인트\n" + httpServletRequest.getRequestURI() + "\n" + + "### 🧐 요청 클라이언트 IP\n" + + getRemoteIp(httpServletRequest) + + "\n" + "### 🖥️ 에러 발생 서버\n" + activeProfile + "\n" @@ -51,4 +54,9 @@ private String getStackTrace(Exception exception) { exception.printStackTrace(new PrintWriter(stringWriter)); return stringWriter.toString(); } + + /* 클라이언트 요청 IP 알아내기 */ + private String getRemoteIp(HttpServletRequest httpServletRequest){ + return httpServletRequest.getRemoteAddr(); + } }