Skip to content

Commit 5cd0e31

Browse files
authored
fix: EC2 Amazon Linux 배포를 위한 appspec.yml 경로 및 권한 수정
1 parent 7fdee3b commit 5cd0e31

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

appspec.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ version: 0.0
22
os: linux
33

44
files:
5-
- source: / # S3 zip 내 루트
6-
destination: /home/ubuntu/app # EC2의 app 디렉토리로 압축 해제
5+
- source: /
6+
destination: /home/ec2-user/app
77
overwrite: yes
88

99
permissions:
10-
- object: /home/ubuntu/app
10+
- object: /home/ec2-user/app
1111
pattern: '**'
12-
owner: ubuntu
13-
group: ubuntu
12+
owner: ec2-user
13+
group: ec2-user
1414
mode: 755
1515

1616
hooks:
1717
AfterInstall:
18-
- location: scripts/deploy.sh # 루트 기준으로 경로 설정
18+
- location: FixLog_Server/scripts/deploy.sh
1919
timeout: 180
20-
runas: ubuntu # root 말고 ubuntu 권장 (실행 권한 관리 쉬움)
20+
runas: ec2-user

0 commit comments

Comments
 (0)