Repository navigation
fix: 배포 시 FILE_URL_SIGNING_SECRET을 서버 .env에 전달 - #94
Merged
Merged
Conversation
운영 프로필은 FILE_URL_SIGNING_SECRET이 없으면 기동하지 못해 main 배포가 롤백되고 있었다. Actions 시크릿 값을 SSH로 넘기고, 서버 .env에 키가 없을 때만 추가한다(이미 있으면 서버 값 유지). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
문제
main 배포(CD)가
Could not resolve placeholder 'FILE_URL_SIGNING_SECRET'로 앱 기동에 실패해 이전 이미지로 롤백되고 있습니다 (#91 병합 배포, #93 병합 배포 모두 동일).서명 URL 기능(#69)에서 운영 프로필이 이 키를 필수로 요구하도록 바뀌었는데, 서버
.env에는 값이 없습니다.변경
deploy.yml: Actions 시크릿FILE_URL_SIGNING_SECRET을 SSH 배포 명령에 환경변수로 전달scripts/remote-deploy.sh: 값이 넘어왔고 서버.env에 같은 키가 없을 때만.env에 추가 (이미 있으면 서버 값을 유지, 재배포해도 키가 바뀌지 않음)사전 작업
FILE_URL_SIGNING_SECRET등록 완료 (랜덤 32바이트 hex)확인 방법
main에 병합되면 CD가 실행되며 "서버 배포" 단계 로그에
.env에 FILE_URL_SIGNING_SECRET 추가가 찍히고 헬스체크를 통과해야 합니다.주의
bash -n문법 검사와 YAML 파싱만 했습니다.🤖 Generated with Claude Code