Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: CD-Dev에서 schema migration 반영 안됨 #1077

Open
3 tasks done
k1g99 opened this issue Dec 28, 2023 · 1 comment
Open
3 tasks done

[Bug]: CD-Dev에서 schema migration 반영 안됨 #1077

k1g99 opened this issue Dec 28, 2023 · 1 comment
Assignees
Labels
🪰 bug Something isn't working Notion task p3-need-now 🧩 Priority 3: 중요한 기능 ⛳️ team-infra

Comments

@k1g99
Copy link
Collaborator

k1g99 commented Dec 28, 2023

Describe the bug

main 브랜치에 merge될 때, cd-dev action을 통해서 자동으로 개발 서버가 배포되도록 설정되어있습니다.
다만, schema가 변경되는 경우에는 해당 변경사항이 자동적으로 반영되지 않는 문제가 발생합니다.

개발 서버에 container들이 운영되지 않는 경우에는 setup 컨테이너가 실행되면서 deploy.sh 파일을 실행하도록 되어있으나,
이미 container들이 운영되고 있는 경우에는 해당 컨테이너가 실행되지 않아서 자동적으로 schema가 반영되지 않 것으로 보입니다.

참고할 파일

Reproduction

  1. schema 변경 후 cd-dev Action 실행

Logs

No response

System Info

개발 서버

Validations

@k1g99 k1g99 added 🪰 bug Something isn't working ⛳️ team-infra p3-need-now 🧩 Priority 3: 중요한 기능 labels Dec 28, 2023
@k1g99 k1g99 self-assigned this Dec 28, 2023
@github-project-automation github-project-automation bot moved this to Pending ✋ in Codedang Dec 28, 2023
@k1g99 k1g99 moved this from Pending ✋ to In Progress 🏃 in Codedang Dec 28, 2023
@k1g99
Copy link
Collaborator Author

k1g99 commented Dec 28, 2023

찾아보니 Backend 이미지가 빌드될 때, entrypoint.sh 파일이 실행되면서, npx prisma migrate deploy가 실행됩니다.

-> 나중에 다시 확인해봅시다!! (아마 prisma migration을 업데이트하지 않고 올리는 바람에 오류가 발생한 것 같아요)

@k1g99 k1g99 moved this from In Progress 🏃 to Pending ✋ in Codedang Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪰 bug Something isn't working Notion task p3-need-now 🧩 Priority 3: 중요한 기능 ⛳️ team-infra
Projects
Status: Pending
Development

No branches or pull requests

2 participants