Chore/31 backend fix snapshot: 프론트엔드 연동 오류 해결을 위한 백엔드 수정#40
Merged
meraki6512 merged 10 commits intoAug 29, 2025
Conversation
프론트엔드 연동 과정에서 발생한 빌드 및 런타임 오류를 해결하고, 전반적인 개발 환경을 안정화했습니다. - **빌드 시스템 수정 (build.gradle, settings.gradle, gradle.properties):** - Flyway 플러그인 관련 의존성 문제를 해결하여 로컬 및 CI 환경에서 빌드가 정상적으로 동작하도록 수정. - `gradle.properties`를 도입하여 민감한 DB 정보를 Git 추적에서 제외. - **Docker 환경 수정 (Dockerfile, docker-compose.yml, ci-docker.yml):** - Docker 빌드 시점에 환경 변수를 안전하게 전달하도록 수정하여 빌드 안정성 확보. - **DB 스키마 수정 (V1__init.sql, V2__insert_initial_data.sql):** - JPA 엔티티와 DB 테이블 간의 스키마 불일치(테이블명, 컬럼명) 문제 해결. - 초기 데이터(seed data)를 추가하여 API 테스트가 즉시 가능하도록 개선.
… 접속 오류 해결 - ci-docker.yml: `docker run` 명령어에 환경 변수를 명확하게 전달하도록 수정
- GitHub Actions 워크플로우에 `services` 블록을 추가하여, CI 작업 실행 시 MySQL 컨테이너가 함께 실행되도록 수정했습니다. - 테스트를 실행하는 애플리케이션 컨테이너가 `localhost`를 통해 서비스 DB에 접속할 수 있도록 `SPRING_DATASOURCE_URL`을 수정하고 `--network host` 옵션을 추가했습니다. - -> 위 변경사항을 통해 CI 환경에 데이터베이스가 존재하지 않아 애플리케이션이 시작되지 못하고 테스트가 실패하던 문제를 해결합니다.
…raki6512/IssueDive into chore/31-backend-fix-snapshot
- CI trigger pull_request_target로 변경
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
연관된 이슈
작업 내용
무엇을 왜 수정했는지:
PR 유형
리뷰 요구사항(선택)
새로운 빌드 및 실행 과정이 문제없이 동작하는지 확인해주시면 감사하겠습니다.
PR Checklist
mainbranch가 아닌devbranch에 PR 요청을 했습니다. (main branch에 바로 PR&merge하지 않기).