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

aws code deploy를 통한 shell script 실행 시, springboot 실행 안됨 #129

Open
seungyeonchoi opened this issue Jun 6, 2023 · 0 comments

Comments

@seungyeonchoi
Copy link
Contributor

seungyeonchoi commented Jun 6, 2023

이슈 배경

alpha, live에 적용하려고, application-{}.yml로 분리했는데

스프링부트가 뜨지 않음

Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working directory.
        at jdk.internal.util.SystemProps$Raw.platformProperties(java.base/Native Method)
        at jdk.internal.util.SystemProps$Raw.<init>(java.base/SystemProps.java:234)
        at jdk.internal.util.SystemProps.initProperties(java.base/SystemProps.java:54)
        at java.lang.System.initPhase1(java.base/System.java:2089)

현상

위에 적은 코드 수정이 원인인줄 알았는데, ec2에서 뭔가 변경사항이 있는지 코드 디플로이를 이용한 쉘 스크립트 동작 시에만 이슈가 있음

  • 쉘 스크립트: scripts/deploy.sh 파일 참고 (vm에도 deploy/wasControl 경로에 똑같이 추가해둠)

자동 배포 실패한 빌드

image
@seungyeonchoi seungyeonchoi changed the title application pid 환경별로 분리 시 에러 발생 aws code deploy를 통한 shell script 실행 시, springboot 실행 안됨 Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant