Skip to content

Commit

Permalink
ci(.github): AWS EC2 환경에 맞도록 SSH 접속 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hepheir committed Sep 25, 2024
1 parent 097cfb9 commit 1cb3c19
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
with:
host: ${{ secrets.SSH_HOSTNAME }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
key: ${{ secrets.SSH_KEY }}
# 서버 쉘 프로파일에 자동으로 아래의 환경에서 시작되도록 설정했음을 전제로 함.
# /app 경로에서, 가상환경 상태로 시작
script: tools/update
script: |
sudo su
cd ~/be-django/app
source ../venv/bin/activate
tools/update

0 comments on commit 1cb3c19

Please sign in to comment.