Skip to content

Commit becf822

Browse files
authored
chore(deploy): CodeDeploy 설정을 위한 appspec.yml 파일 추가
1 parent 13bd654 commit becf822

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

appspec.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 0.0
2+
os: linux
3+
4+
files:
5+
- source: / # S3 zip 내 루트
6+
destination: /home/ubuntu/app # EC2의 app 디렉토리로 압축 해제
7+
overwrite: yes
8+
9+
permissions:
10+
- object: /home/ubuntu/app
11+
pattern: '**'
12+
owner: ubuntu
13+
group: ubuntu
14+
mode: 755
15+
16+
hooks:
17+
AfterInstall:
18+
- location: scripts/deploy.sh # 루트 기준으로 경로 설정
19+
timeout: 180
20+
runas: ubuntu # root 말고 ubuntu 권장 (실행 권한 관리 쉬움)

0 commit comments

Comments
 (0)