Skip to content

Commit

Permalink
Update Deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseohyun1228 authored Nov 7, 2024
1 parent 67c608c commit 12361ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
echo "${{ secrets.SSH_KEY }}" > kwy-root.pem # SSH 키를 파일로 저장
chmod 600 kwy-root.pem # 파일 권한 설정
ssh -i kwy-root.pem ubuntu@ec2-52-79-80-3.ap-northeast-2.compute.amazonaws.com << EOF
ssh -o StrictHostKeyChecking=no -i kwy-root.pem ubuntu@ec2-52-79-80-3.ap-northeast-2.compute.amazonaws.com << EOF
# 서버에서 실행할 명령어
cd ~/Team11_BE # 프로젝트 디렉터리로 이동
git pull origin deploy # 배포 브랜치에서 업데이트
Expand All @@ -45,4 +45,4 @@ jobs:
- name: Check log file
run: |
ssh -i kwy-root.pem ubuntu@ec2-52-79-80-3.ap-northeast-2.compute.amazonaws.com "tail -f ~/Team11_BE/log.txt" # 로그 파일 확인
ssh -o StrictHostKeyChecking=no -i kwy-root.pem ubuntu@ec2-52-79-80-3.ap-northeast-2.compute.amazonaws.com "tail -f ~/Team11_BE/log.txt" # 로그 파일 확인

0 comments on commit 12361ce

Please sign in to comment.