-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from VOM-Project/feature/deploy
feat: add deploy script
- Loading branch information
Showing
4 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,3 @@ application.yml | |
|
||
### yml file ### | ||
src/main/**/application-local.yml | ||
|
||
# 배포 관련 수정 | ||
appspec.yml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: 0.0 | ||
os: linux | ||
|
||
files: | ||
- source: / # 인스턴스에 복사할 디렉터리 경로 | ||
destination: /home/ubuntu/app # 인스턴스에서 파일이 복사되는 위치 | ||
overwrite: yes # 복사할 위치에 파일이 있는 경우 대체 | ||
|
||
permissions: | ||
- object: / # 권한이 지정되는 파일 or 디렉터리 | ||
pattern: "**" # 매칭되는 패턴에만 권한 부여 | ||
owner: ubuntu # object의 소유자 | ||
group: ubuntu # object의 그룹 이름 | ||
|
||
hooks: | ||
AfterInstall: # CodeDeploy의 AfterInstall 단계에서 실행 | ||
- location: scripts/stop.sh # hooks에서 실행할 스크립트의 위치 | ||
timeout: 60 # 스크립트 실행에 허용되는 최대 시간, 넘으면 배포 실패 | ||
runas: ubuntu # 스크립트를 실행하는 사용자 | ||
ApplicationStart: # CodeDeploy의 ApplicationStart 단계에서 실행 | ||
- location: scripts/start.sh | ||
timeout: 60 | ||
runas: ubuntu |
This file contains 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
This file contains 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