Skip to content

Conversation

@AhnJoonSung
Copy link
Member

🔧 변경 내용 (What)

  1. CORS 설정에 127.0.0.1 추가

    • 로컬 개발 환경에서 IP 주소로 접근할 경우를 지원하기 위해
      Access-Control-Allow-Origin 설정에 '127.0.0.1'을 추가했습니다.
  2. 컨테이너 Entrypoint에 migrate 명령어 추가

    • 서비스 시작 시 자동으로 DB 마이그레이션이 수행되도록 설정

- allow header에 '127.0.0.1' 추가
- 컨테이너 entrypoint에 `migrate` 명령어 추가
@AhnJoonSung AhnJoonSung self-assigned this May 18, 2025
Copilot AI review requested due to automatic review settings May 18, 2025 12:02
@AhnJoonSung AhnJoonSung added the feature New feature or request label May 18, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the IP "127.0.0.1" to the ALLOWED_HOSTS configuration and updates the Docker container entrypoint to execute database migrations automatically.

  • Updated CORS settings by enabling "127.0.0.1" as an allowed host.
  • Modified the Docker entrypoint to run migration commands on startup.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
utils/entrypoint.sh Added commands to run database migrations on container startup.
config/settings.py Updated ALLOWED_HOSTS to include "127.0.0.1".
Comments suppressed due to low confidence (1)

utils/entrypoint.sh:13

  • Running 'makemigrations' automatically in a production or container startup script may lead to unintended migration file creation; consider generating migrations during development instead.
python manage.py makemigrations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants