Open
Conversation
- allow header에 '127.0.0.1' 추가 - 컨테이너 entrypoint에 `migrate` 명령어 추가
There was a problem hiding this comment.
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
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.
🔧 변경 내용 (What)
CORS 설정에
127.0.0.1추가Access-Control-Allow-Origin설정에'127.0.0.1'을 추가했습니다.컨테이너 Entrypoint에
migrate명령어 추가