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

[BE] 배포 환경 설정 #15

Open
1 of 3 tasks
102092 opened this issue May 6, 2020 · 2 comments
Open
1 of 3 tasks

[BE] 배포 환경 설정 #15

102092 opened this issue May 6, 2020 · 2 comments
Assignees
Labels
be backend Feature 새로운 기능 구현했을 때

Comments

@102092
Copy link
Contributor

102092 commented May 6, 2020

배포

  • 자동 빌드, 배포 스크립트 작성
  • s3 변경시, 어떻게 해당 파일을 ec2에서 가져와서 배포할 것인지 찾아보고, gist에 정리해보기
  • cors config 추가
@102092 102092 added be backend Feature 새로운 기능 구현했을 때 labels May 6, 2020
@102092 102092 added this to the BE 진행사항 milestone May 6, 2020
@102092 102092 self-assigned this May 6, 2020
@102092
Copy link
Contributor Author

102092 commented May 11, 2020

EC2에서 배포하는 스크립트

PID=$(jps | grep baseball09-0.0.1-SNAPSHOT.jar | awk '{print $1}')
GIT_REPO="https://github.com/codesquad-member-2020/baseball-09.git"
kill -9 $PID
sleep 1
rm -rf baseball-09
git clone -b $1 --single-branch $GIT_REPO
sleep 1
cd baseball-09
cd BE
./gradlew build -x test
sleep 1
cd build/libs
nohup java -jar -Dspring.profiles.active=prod baseball09-0.0.1-SNAPSHOT.jar &

@102092
Copy link
Contributor Author

102092 commented May 11, 2020

S3를 통한 배포

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
be backend Feature 새로운 기능 구현했을 때
Projects
None yet
Development

No branches or pull requests

1 participant