Skip to content

Commit

Permalink
appspec.yml 띄어쓰기 오류 개선 및 파일접근 권한 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
youngwan2 committed Jun 21, 2024
1 parent 9403235 commit 22cf8ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ jobs:
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Archive files # 노드 모듈 제외한 모든 파일들 재귀적으로 압축하여 project.zip 로 변환
run: |
zip -r project.zip . -x "node_modules/*"
- name: Verify project.zip
run: ls -l project.zip

- name: Set up Node.js
uses: actions/setup-node@v4
with:
Expand Down
17 changes: 12 additions & 5 deletions appspec.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
version: 0.0
os: linux
# source 가 현재 경로에 있으면 /home/ec2-user/project 경로에 압축 풀기를 실시합니다.
- source: / # 현재 경로에 있는 소스
destination: /home/ec2-user/project # 이 경로로 복사 합니다.

files:
- source: /
destination: /home/ec2-user/project
overwrite: yes

permissions:
- object: /home/ec2-user/awsbeginer-bucket-deploy
owner: root
group: root
mode: 755

hooks:
AfterInstall:
AfterInstall:
- location: scripts/deploy.sh
timeout: 300
runas: root
runas: root

0 comments on commit 22cf8ff

Please sign in to comment.