From 558bd15bbd112fe87af2935011cca80f62c777b8 Mon Sep 17 00:00:00 2001 From: Seungyeon Kim Date: Fri, 1 Aug 2025 17:11:49 +0900 Subject: [PATCH 01/27] feat: Create gradle.yml --- .github/workflows/gradle.yml | 67 ++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..ba7502f --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,67 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle + +name: Java CI with Gradle + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. + # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md + - name: Setup Gradle + uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + + - name: Build with Gradle Wrapper + run: ./gradlew build + + # NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html). + # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version. + # + # - name: Setup Gradle + # uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + # with: + # gradle-version: '8.9' + # + # - name: Build with Gradle 8.9 + # run: gradle build + + dependency-submission: + + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies. + # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 From 728e0a1c6b74d08e424902a06100c1cfa2d567b2 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:17:15 +0900 Subject: [PATCH 02/27] fix: Change git file --- .github/workflows/{gradle.yml => deploy.yml} | 48 ++++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) rename .github/workflows/{gradle.yml => deploy.yml} (51%) diff --git a/.github/workflows/gradle.yml b/.github/workflows/deploy.yml similarity index 51% rename from .github/workflows/gradle.yml rename to .github/workflows/deploy.yml index ba7502f..3768867 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/deploy.yml @@ -9,9 +9,9 @@ name: Java CI with Gradle on: push: - branches: [ "develop" ] + branches: [ "release" ] pull_request: - branches: [ "develop" ] + branches: [ "release" ] jobs: build: @@ -21,20 +21,20 @@ jobs: contents: read steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' - # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. - # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md - - name: Setup Gradle - uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. + # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md + - name: Setup Gradle + uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 - - name: Build with Gradle Wrapper - run: ./gradlew build + - name: Build with Gradle Wrapper + run: ./gradlew build --exclude-task test # NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html). # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version. @@ -54,14 +54,14 @@ jobs: contents: write steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' - # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies. - # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md - - name: Generate and submit dependency graph - uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies. + # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 From ad483f6c289ef447532064bba8ad10079712bcc0 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:21:54 +0900 Subject: [PATCH 03/27] fix: Modify file --- .github/workflows/deploy.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3768867..23e7e33 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,21 +47,3 @@ jobs: # - name: Build with Gradle 8.9 # run: gradle build - dependency-submission: - - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - - # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies. - # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md - - name: Generate and submit dependency graph - uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 From 0309f228d1ab7c261987566bbf75f953c50920c3 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:50:29 +0900 Subject: [PATCH 04/27] feat: Add EC2 Configuration --- .github/workflows/deploy.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 23e7e33..72c7e9e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,3 +47,46 @@ jobs: # - name: Build with Gradle 8.9 # run: gradle build +name: Java CI + CD + +on: + push: + branches: [ "release" ] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Build with Gradle + run: ./gradlew build --exclude-task test + + deploy: + name: Deploy to EC2 + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Copy JAR to EC2 + run: | + echo "$EC2_SSH_KEY" > private_key.pem + chmod 600 private_key.pem + scp -o StrictHostKeyChecking=no -i private_key.pem build/libs/*.jar $EC2_USER@$EC2_HOST:$DEPLOY_PATH/app.jar + + - name: Run JAR on EC2 + run: | + ssh -o StrictHostKeyChecking=no -i private_key.pem $EC2_USER@$EC2_HOST << EOF + pkill -f 'java -jar' || true + nohup java -jar $DEPLOY_PATH/app.jar > app.log 2>&1 & + EOF \ No newline at end of file From 9d6f1aa43b24e02ddf99ccc23862760f78689264 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:51:45 +0900 Subject: [PATCH 05/27] fix: Modify deploy.yml --- .github/workflows/deploy.yml | 53 ++---------------------------------- 1 file changed, 3 insertions(+), 50 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 72c7e9e..64d96c7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,52 +1,3 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle - -name: Java CI with Gradle - -on: - push: - branches: [ "release" ] - pull_request: - branches: [ "release" ] - -jobs: - build: - - runs-on: ubuntu-latest - permissions: - contents: read - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - - # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. - # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md - - name: Setup Gradle - uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 - - - name: Build with Gradle Wrapper - run: ./gradlew build --exclude-task test - - # NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html). - # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version. - # - # - name: Setup Gradle - # uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 - # with: - # gradle-version: '8.9' - # - # - name: Build with Gradle 8.9 - # run: gradle build - name: Java CI + CD on: @@ -65,14 +16,16 @@ jobs: with: java-version: '17' distribution: 'temurin' + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 + - name: Build with Gradle run: ./gradlew build --exclude-task test deploy: name: Deploy to EC2 - needs: build + needs: build # build job이 성공해야 실행됨 runs-on: ubuntu-latest steps: - name: Checkout code From aa053298a230919363e95cc655346834c6855536 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:56:02 +0900 Subject: [PATCH 06/27] fix: Modify FIle --- .github/workflows/deploy.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 64d96c7..4babac5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,8 +7,6 @@ on: jobs: build: runs-on: ubuntu-latest - permissions: - contents: read steps: - uses: actions/checkout@v4 - name: Set up JDK 17 @@ -17,25 +15,34 @@ jobs: java-version: '17' distribution: 'temurin' - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v4 - - name: Build with Gradle run: ./gradlew build --exclude-task test + - name: Upload JAR file + uses: actions/upload-artifact@v3 + with: + name: springboot-jar + path: build/libs/*.jar + deploy: name: Deploy to EC2 - needs: build # build job이 성공해야 실행됨 + needs: build runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 + - name: Download JAR file from build + uses: actions/download-artifact@v3 + with: + name: springboot-jar + path: . - - name: Copy JAR to EC2 + - name: Prepare SSH Key run: | echo "$EC2_SSH_KEY" > private_key.pem chmod 600 private_key.pem - scp -o StrictHostKeyChecking=no -i private_key.pem build/libs/*.jar $EC2_USER@$EC2_HOST:$DEPLOY_PATH/app.jar + + - name: Copy JAR to EC2 + run: | + scp -o StrictHostKeyChecking=no -i private_key.pem *.jar $EC2_USER@$EC2_HOST:$DEPLOY_PATH/app.jar - name: Run JAR on EC2 run: | From 2d1ff5dd22b23128bdbe1750f91e7c6e5584b33c Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:58:58 +0900 Subject: [PATCH 07/27] fix: Modify deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4babac5..29fe84e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,7 @@ jobs: run: ./gradlew build --exclude-task test - name: Upload JAR file - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: springboot-jar path: build/libs/*.jar @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download JAR file from build - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: springboot-jar path: . From 4bed9c0054b056e4c25902182a4508ffc3d06284 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 18:02:56 +0900 Subject: [PATCH 08/27] fix: Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 29fe84e..16fd839 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: path: build/libs/*.jar deploy: - name: Deploy to EC2 + name: Deploy to EC22 needs: build runs-on: ubuntu-latest steps: From c11cf8a480c19f214b38d2cb3618934a58643d00 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 18:05:30 +0900 Subject: [PATCH 09/27] fix: Modify deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 16fd839..29fe84e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: path: build/libs/*.jar deploy: - name: Deploy to EC22 + name: Deploy to EC2 needs: build runs-on: ubuntu-latest steps: From 210c219aac090a0f26338fd51eaf9bef5c3d9be5 Mon Sep 17 00:00:00 2001 From: Seungyeon Kim Date: Fri, 1 Aug 2025 17:11:49 +0900 Subject: [PATCH 10/27] feat: Create gradle.yml --- .github/workflows/gradle.yml | 67 ++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..ba7502f --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,67 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle + +name: Java CI with Gradle + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. + # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md + - name: Setup Gradle + uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + + - name: Build with Gradle Wrapper + run: ./gradlew build + + # NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html). + # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version. + # + # - name: Setup Gradle + # uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + # with: + # gradle-version: '8.9' + # + # - name: Build with Gradle 8.9 + # run: gradle build + + dependency-submission: + + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies. + # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 From bbb44146b6144464b60ab19f7496ada16e479dc8 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:17:15 +0900 Subject: [PATCH 11/27] fix: Change git file --- .github/workflows/{gradle.yml => deploy.yml} | 48 ++++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) rename .github/workflows/{gradle.yml => deploy.yml} (51%) diff --git a/.github/workflows/gradle.yml b/.github/workflows/deploy.yml similarity index 51% rename from .github/workflows/gradle.yml rename to .github/workflows/deploy.yml index ba7502f..3768867 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/deploy.yml @@ -9,9 +9,9 @@ name: Java CI with Gradle on: push: - branches: [ "develop" ] + branches: [ "release" ] pull_request: - branches: [ "develop" ] + branches: [ "release" ] jobs: build: @@ -21,20 +21,20 @@ jobs: contents: read steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' - # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. - # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md - - name: Setup Gradle - uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. + # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md + - name: Setup Gradle + uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 - - name: Build with Gradle Wrapper - run: ./gradlew build + - name: Build with Gradle Wrapper + run: ./gradlew build --exclude-task test # NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html). # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version. @@ -54,14 +54,14 @@ jobs: contents: write steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' - # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies. - # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md - - name: Generate and submit dependency graph - uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies. + # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 From 5d143927b1db6938822377321fcead5a747d07ba Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:21:54 +0900 Subject: [PATCH 12/27] fix: Modify file --- .github/workflows/deploy.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3768867..23e7e33 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,21 +47,3 @@ jobs: # - name: Build with Gradle 8.9 # run: gradle build - dependency-submission: - - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - - # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies. - # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md - - name: Generate and submit dependency graph - uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 From 109fadbced5e1f47659533b7c31a8b7fee9ab08e Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:50:29 +0900 Subject: [PATCH 13/27] feat: Add EC2 Configuration --- .github/workflows/deploy.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 23e7e33..72c7e9e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,3 +47,46 @@ jobs: # - name: Build with Gradle 8.9 # run: gradle build +name: Java CI + CD + +on: + push: + branches: [ "release" ] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Build with Gradle + run: ./gradlew build --exclude-task test + + deploy: + name: Deploy to EC2 + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Copy JAR to EC2 + run: | + echo "$EC2_SSH_KEY" > private_key.pem + chmod 600 private_key.pem + scp -o StrictHostKeyChecking=no -i private_key.pem build/libs/*.jar $EC2_USER@$EC2_HOST:$DEPLOY_PATH/app.jar + + - name: Run JAR on EC2 + run: | + ssh -o StrictHostKeyChecking=no -i private_key.pem $EC2_USER@$EC2_HOST << EOF + pkill -f 'java -jar' || true + nohup java -jar $DEPLOY_PATH/app.jar > app.log 2>&1 & + EOF \ No newline at end of file From b68f4e49f3665faf93eac7b4abf9912f1a3fea4c Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:51:45 +0900 Subject: [PATCH 14/27] fix: Modify deploy.yml --- .github/workflows/deploy.yml | 53 ++---------------------------------- 1 file changed, 3 insertions(+), 50 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 72c7e9e..64d96c7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,52 +1,3 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle - -name: Java CI with Gradle - -on: - push: - branches: [ "release" ] - pull_request: - branches: [ "release" ] - -jobs: - build: - - runs-on: ubuntu-latest - permissions: - contents: read - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - - # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. - # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md - - name: Setup Gradle - uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 - - - name: Build with Gradle Wrapper - run: ./gradlew build --exclude-task test - - # NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html). - # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version. - # - # - name: Setup Gradle - # uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 - # with: - # gradle-version: '8.9' - # - # - name: Build with Gradle 8.9 - # run: gradle build - name: Java CI + CD on: @@ -65,14 +16,16 @@ jobs: with: java-version: '17' distribution: 'temurin' + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 + - name: Build with Gradle run: ./gradlew build --exclude-task test deploy: name: Deploy to EC2 - needs: build + needs: build # build job이 성공해야 실행됨 runs-on: ubuntu-latest steps: - name: Checkout code From dabfddc34d82ce10b39a0205f45cb3929d3aaa99 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:56:02 +0900 Subject: [PATCH 15/27] fix: Modify FIle --- .github/workflows/deploy.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 64d96c7..4babac5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,8 +7,6 @@ on: jobs: build: runs-on: ubuntu-latest - permissions: - contents: read steps: - uses: actions/checkout@v4 - name: Set up JDK 17 @@ -17,25 +15,34 @@ jobs: java-version: '17' distribution: 'temurin' - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v4 - - name: Build with Gradle run: ./gradlew build --exclude-task test + - name: Upload JAR file + uses: actions/upload-artifact@v3 + with: + name: springboot-jar + path: build/libs/*.jar + deploy: name: Deploy to EC2 - needs: build # build job이 성공해야 실행됨 + needs: build runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 + - name: Download JAR file from build + uses: actions/download-artifact@v3 + with: + name: springboot-jar + path: . - - name: Copy JAR to EC2 + - name: Prepare SSH Key run: | echo "$EC2_SSH_KEY" > private_key.pem chmod 600 private_key.pem - scp -o StrictHostKeyChecking=no -i private_key.pem build/libs/*.jar $EC2_USER@$EC2_HOST:$DEPLOY_PATH/app.jar + + - name: Copy JAR to EC2 + run: | + scp -o StrictHostKeyChecking=no -i private_key.pem *.jar $EC2_USER@$EC2_HOST:$DEPLOY_PATH/app.jar - name: Run JAR on EC2 run: | From 633b7d37474117fbd48e133a1d8967261c6747e2 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:58:58 +0900 Subject: [PATCH 16/27] fix: Modify deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4babac5..29fe84e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,7 @@ jobs: run: ./gradlew build --exclude-task test - name: Upload JAR file - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: springboot-jar path: build/libs/*.jar @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download JAR file from build - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: springboot-jar path: . From f0ab5025e27ffd181b1cf696ff7f7ce7cb140f5a Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 18:02:56 +0900 Subject: [PATCH 17/27] fix: Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 29fe84e..16fd839 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: path: build/libs/*.jar deploy: - name: Deploy to EC2 + name: Deploy to EC22 needs: build runs-on: ubuntu-latest steps: From 2fc85c048a4f41226810562b3a7f95c9174b4d21 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Fri, 1 Aug 2025 18:05:30 +0900 Subject: [PATCH 18/27] fix: Modify deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 16fd839..29fe84e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: path: build/libs/*.jar deploy: - name: Deploy to EC22 + name: Deploy to EC2 needs: build runs-on: ubuntu-latest steps: From 840248d81b2d5e891072469f768a363eb3acb48b Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Mon, 4 Aug 2025 14:25:15 +0900 Subject: [PATCH 19/27] chore: Connect with Swagger #26 --- build.gradle | 3 ++- .../delivery/config/SwaggerConfig.java | 26 +++++++++++++++++++ .../advice/GlobalExceptionalHandler.java | 8 +++++- src/main/resources/application.yaml | 3 ++- 4 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 src/main/java/com/profect/delivery/config/SwaggerConfig.java diff --git a/build.gradle b/build.gradle index 959448b..41bbfbc 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ plugins { id 'java' - id 'org.springframework.boot' version '3.5.4' + id 'org.springframework.boot' version '3.2.5' id 'io.spring.dependency-management' version '1.1.7' } @@ -30,6 +30,7 @@ dependencies { // implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-validation' + implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0' compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' runtimeOnly 'org.postgresql:postgresql' diff --git a/src/main/java/com/profect/delivery/config/SwaggerConfig.java b/src/main/java/com/profect/delivery/config/SwaggerConfig.java new file mode 100644 index 0000000..e817530 --- /dev/null +++ b/src/main/java/com/profect/delivery/config/SwaggerConfig.java @@ -0,0 +1,26 @@ +package com.profect.delivery.config; +import io.swagger.v3.oas.models.Components; +import io.swagger.v3.oas.models.OpenAPI; +import io.swagger.v3.oas.models.info.Info; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.config.annotation.EnableWebMvc; + +@Configuration +@EnableWebMvc +public class SwaggerConfig { + + @Bean + public OpenAPI openAPI() { + return new OpenAPI() + .components(new Components()) + .info(apiInfo()); + } + + private Info apiInfo() { + return new Info() + .title("API Title") // API의 제목 + .description("This is my Swagger UI") // API에 대한 설명 + .version("1.0.0"); // API의 버전 + } +} diff --git a/src/main/java/com/profect/delivery/global/advice/GlobalExceptionalHandler.java b/src/main/java/com/profect/delivery/global/advice/GlobalExceptionalHandler.java index 5d1611d..1327657 100644 --- a/src/main/java/com/profect/delivery/global/advice/GlobalExceptionalHandler.java +++ b/src/main/java/com/profect/delivery/global/advice/GlobalExceptionalHandler.java @@ -69,7 +69,13 @@ public ResponseEntity> handleValidationExceptions(MethodArgumentN @ExceptionHandler(Exception.class) public ResponseEntity> handleAllUncaughtException(Exception e, HttpServletRequest request) { - ErrorResponse err = ErrorResponse.of(50000, "서버 내부 오류가 발생했습니다.", request.getRequestURI()); + // Swagger 요청이면 예외를 다시 던져 Spring 기본 처리로 넘김 + String path = request.getRequestURI(); + if (path.contains("/v3/api-docs") || path.contains("/swagger-ui")) { + throw new RuntimeException(e); + } + + ErrorResponse err = ErrorResponse.of(50000, "서버 내부 오류가 발생했습니다.", path); return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR) .body(ApiResponse.failure(err)); } diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index c56d4c4..cded0a7 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -26,4 +26,5 @@ spring: jackson: time-zone: Asia/Seoul serialization: - write-dates-as-timestamps: false \ No newline at end of file + write-dates-as-timestamps: false + From 936b76fbe6286606f4e5baaf27c079af6d478038 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Mon, 4 Aug 2025 14:42:55 +0900 Subject: [PATCH 20/27] fix: Modify the deploy.yml #26 --- .github/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 29fe84e..31a5b21 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -37,16 +37,16 @@ jobs: - name: Prepare SSH Key run: | - echo "$EC2_SSH_KEY" > private_key.pem + echo "${{ secrets.EC2_KEY }}" > private_key.pem chmod 600 private_key.pem - name: Copy JAR to EC2 run: | - scp -o StrictHostKeyChecking=no -i private_key.pem *.jar $EC2_USER@$EC2_HOST:$DEPLOY_PATH/app.jar + scp -o StrictHostKeyChecking=no -i private_key.pem build/libs/${{ secrets.JAR_NAME }} ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }}:/home/ec2-user/app/app.jar - name: Run JAR on EC2 run: | - ssh -o StrictHostKeyChecking=no -i private_key.pem $EC2_USER@$EC2_HOST << EOF + ssh -o StrictHostKeyChecking=no -i private_key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << EOF pkill -f 'java -jar' || true - nohup java -jar $DEPLOY_PATH/app.jar > app.log 2>&1 & + nohup java -jar /home/ec2-user/app/app.jar > app.log 2>&1 & EOF \ No newline at end of file From 13fc8d95200e2da79b891268255e437e0edfa8cf Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Mon, 4 Aug 2025 14:46:35 +0900 Subject: [PATCH 21/27] fix: Modify the deploy.yml #26 --- .github/workflows/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 31a5b21..232166a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -42,8 +42,7 @@ jobs: - name: Copy JAR to EC2 run: | - scp -o StrictHostKeyChecking=no -i private_key.pem build/libs/${{ secrets.JAR_NAME }} ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }}:/home/ec2-user/app/app.jar - + scp -o StrictHostKeyChecking=no -i private_key.pem ./${{ secrets.JAR_NAME }} ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }}:/home/ec2-user/app/app.jar - name: Run JAR on EC2 run: | ssh -o StrictHostKeyChecking=no -i private_key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << EOF From fa7387ebd3ad4959db1a7976d982bd0a0562ddab Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Mon, 4 Aug 2025 14:57:52 +0900 Subject: [PATCH 22/27] fix: Modify the deploy.yml #26 --- .github/workflows/deploy.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 232166a..ff752ba 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,6 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Set up JDK 17 uses: actions/setup-java@v4 with: @@ -22,7 +23,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: springboot-jar - path: build/libs/*.jar + path: build/libs/${{ secrets.JAR_NAME }} deploy: name: Deploy to EC2 @@ -40,12 +41,18 @@ jobs: echo "${{ secrets.EC2_KEY }}" > private_key.pem chmod 600 private_key.pem + - name: Check JAR existence + run: | + ls -l ${{ secrets.JAR_NAME }} + - name: Copy JAR to EC2 run: | - scp -o StrictHostKeyChecking=no -i private_key.pem ./${{ secrets.JAR_NAME }} ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }}:/home/ec2-user/app/app.jar + scp -o StrictHostKeyChecking=no -i private_key.pem ${{ secrets.JAR_NAME }} \ + ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }}:${{ secrets.DEPLOY_PATH }}/app.jar + - name: Run JAR on EC2 run: | ssh -o StrictHostKeyChecking=no -i private_key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << EOF pkill -f 'java -jar' || true - nohup java -jar /home/ec2-user/app/app.jar > app.log 2>&1 & + nohup java -jar ${{ secrets.DEPLOY_PATH }}/app.jar > ${{ secrets.DEPLOY_PATH }}/app.log 2>&1 & EOF \ No newline at end of file From 0608fb23e2ac469943a924e5c220dbbb84a00258 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Mon, 4 Aug 2025 15:23:58 +0900 Subject: [PATCH 23/27] fix: Update the database #26 --- src/main/resources/application.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index cded0a7..4459e2b 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -3,9 +3,9 @@ spring: name: sample-project datasource: - url: jdbc:postgresql://localhost:5432/sample + url: jdbc:postgresql://43.200.244.12:5432/sample driver-class-name: org.postgresql.Driver - username: user + username: postgres password: password jpa: From bf6135a1666f8de9a60a4c725ffbf8d6640e9a7d Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Mon, 4 Aug 2025 15:56:18 +0900 Subject: [PATCH 24/27] fix: Update the application.yml #26 --- src/main/resources/application.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 4459e2b..cd00999 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -3,14 +3,14 @@ spring: name: sample-project datasource: - url: jdbc:postgresql://43.200.244.12:5432/sample + url: jdbc:postgresql://43.200.244.12/sample driver-class-name: org.postgresql.Driver - username: postgres + username: user password: password jpa: hibernate: - ddl-auto: create # Hibernate가 테이블 생성 안 하도록 설정 + ddl-auto: none # Hibernate가 테이블 생성 안 하도록 설정 show-sql: true properties: hibernate: @@ -26,5 +26,4 @@ spring: jackson: time-zone: Asia/Seoul serialization: - write-dates-as-timestamps: false - + write-dates-as-timestamps: false \ No newline at end of file From 8580b5503104d0f32bfc60aa42a35e474c0724e6 Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Mon, 4 Aug 2025 16:04:47 +0900 Subject: [PATCH 25/27] fix: Update the application.yml #26 --- src/main/resources/application.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index cd00999..4644185 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -5,7 +5,7 @@ spring: datasource: url: jdbc:postgresql://43.200.244.12/sample driver-class-name: org.postgresql.Driver - username: user + username: postgres password: password jpa: From bef7f02e765c4a060411f78817eb7bb0324e3b0d Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Mon, 4 Aug 2025 16:07:24 +0900 Subject: [PATCH 26/27] fix: Update the Usercontroller #26 --- .../delivery/domain/users/controller/UserController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/profect/delivery/domain/users/controller/UserController.java b/src/main/java/com/profect/delivery/domain/users/controller/UserController.java index 12b81ad..46d989e 100644 --- a/src/main/java/com/profect/delivery/domain/users/controller/UserController.java +++ b/src/main/java/com/profect/delivery/domain/users/controller/UserController.java @@ -26,7 +26,7 @@ public class UserController { @GetMapping public ResponseEntity> getUser() { - String currentUserId = "user002";//인증인가 가져오면 유저 id 추출 + String currentUserId = "U000000001";//인증인가 가져오면 유저 id 추출 return userService.getUserById(currentUserId) .map(UserResponseDto::fromEntity) // Entity를 DTO로 변환 @@ -40,7 +40,7 @@ public ResponseEntity> getUser() { public ResponseEntity> patchUser( @RequestBody UserUpdateRequestDto userUpdateRequestDto) { - String currentUserId = "user001";//인증인가에서 가져온 유저 id + String currentUserId = "U000000001";//인증인가에서 가져온 유저 id String updateby="admin";//인증인가에서 가져온 업데이트한 사람 userService.updateUser(userUpdateRequestDto,currentUserId,updateby); @@ -53,7 +53,7 @@ public ResponseEntity> patchUser( @GetMapping("/addresses") public ResponseEntity>> getUserAddresses() { - String currentUserId = "user001"; + String currentUserId = "U000000001"; List addresses = userAddressService.findByUserId(currentUserId).stream() .map(UserAddressesResponseDto::fromEntity) // 각 엔티티를 DTO로 변환 @@ -68,7 +68,7 @@ public ResponseEntity>> getUserAddres public ResponseEntity> postUserAddressses( @RequestBody UserAddressesRequestDto userAddressesRequestDto) { - String currentUserId = "user001"; + String currentUserId = "U000000001"; userAddressService.CreateUserAddress(userAddressesRequestDto,currentUserId); From b8abbd50c20d68b0ccbd73dafae51b84b87f3c1e Mon Sep 17 00:00:00 2001 From: bleuxsy <100823803+bleuxsy@users.noreply.github.com> Date: Mon, 4 Aug 2025 16:17:51 +0900 Subject: [PATCH 27/27] fix: Update the application.yaml #26 --- src/main/resources/application.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 4644185..8092473 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -1,3 +1,6 @@ +server: + address: 0.0.0.0 + port: 8080 spring: application: name: sample-project