Skip to content

Commit

Permalink
appspec.yml 파일 및 deploy.sh 파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
youngwan2 committed Jun 21, 2024
1 parent 15bce61 commit 5e2c625
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
#!/bin/bash
# project.zip 설치 후 해당 파일이 있는 경로로 이동합니다.
cd /home/ec2-user

# project.zip 의 압축을 현재 경로에 풉니다.
# -o : 압축을 푸는 경우 기존 동일한 파일을 새로운 파일로 덮어쓰기 합니다.
unzip -o project.zip -d project

# project 폴더로 들어갑니다.
cd project
# project.zip 압축풀기가 완료된 소스파일들이 모인 경로로 이동합니다.
cd /home/ec2-user/project

# 종속성이 있으면 설치합니다.
npm install

# 서버를 재시작 합니다.
pm2 restart 'start'
# 서버를 재시작 합니다 -> 여기서 'start'는 사용자 작명입니다.
# pm2 에 대한 자세한 부분은 npm pm2 를 찾아보세요.
pm2 restart 'start'

0 comments on commit 5e2c625

Please sign in to comment.