Skip to content

Commit 5fd5806

Browse files
authored
Merge pull request #15 from SynergyX-AI-Pattern/bug/#9_deploy_error
[FIX] workflow 로깅 추가 #9
2 parents 89c6073 + bc879d7 commit 5fd5806

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/fastapi-dev-ci-cd.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
cd /home/$EC2_USERNAME/fastapi-app
5353
5454
# Python venv 설치
55-
echo '[INFO] python3.10-venv 설치 보장 중...'
55+
echo '[INFO] python3.10-venv 설치 중...'
5656
sudo apt update
5757
sudo apt install -y python3.10-venv python3-pip
5858
@@ -65,7 +65,11 @@ jobs:
6565
# fast api 서버 재시작
6666
pkill -f 'uvicorn' || true
6767
export PYTHONPATH=$(pwd)
68-
nohup venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000 > fastapi.log 2>&1 &
68+
69+
echo '[INFO] FastAPI 실행 중...'
70+
nohup ./venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000 > fastapi.log 2>&1 &
71+
sleep 8
72+
tail -n 50 fastapi.log
6973
"
7074
7175
rm -f private_key.pem

0 commit comments

Comments
 (0)