Skip to content

Commit

Permalink
bug : ci/cd 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kanguk01 committed Jan 25, 2024
1 parent 6ae0e80 commit 73c72aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ jobs: # Job
key: ${{ secrets.AWS_KEY_PEM }}
envs: GITHUB_SHA
script: |
cd NextPage/
cd NextPage/backend/
git pull
cd ../
sudo docker-compose -f docker-compose.yml -f docker-compose.monitoring.yml down
sudo docker-compose -f docker-compose.yml -f docker-compose.monitoring.yml pull
sudo docker-compose -f docker-compose.yml -f docker-compose.monitoring.yml up -d --build
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:

- name: Set PYTHONPATH
run: |
echo "PYTHONPATH=${{ github.workspace }}/backend" >> $GITHUB_ENV
echo "PYTHONPATH=${{ github.workspace }}/backend" >> $GITHUB_PATH
echo "PYTHONPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "PYTHONPATH=${{ github.workspace }}" >> $GITHUB_PATH
- name: Install Dependencies
Expand Down
1 change: 1 addition & 0 deletions backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import sys
from pathlib import Path

sys.path.append(os.path.join(os.path.dirname(__file__), 'backend'))
from backend.mysettings import MY_DATABASES, MY_DATABASE_URL, MY_SECRET
from dotenv import load_dotenv

Expand Down

0 comments on commit 73c72aa

Please sign in to comment.