Skip to content

Commit 1fa1e5b

Browse files
authored
🐛 fix: 실행되다 멈추는 오류 수정
🐛 fix: 실행되다 멈추는 오류 수정
2 parents cda30c0 + 73d021e commit 1fa1e5b

29 files changed

+33
-30
lines changed

.DS_Store

6 KB
Binary file not shown.

.github/.DS_Store

6 KB
Binary file not shown.

.github/workflows/cicd.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
context: .
3838
file: ./Dockerfile
3939
push: true
40+
no-cache: true
4041
tags: |
4142
${{ env.IMAGE }}:latest
4243
${{ env.IMAGE }}:${{ github.sha }}
@@ -45,7 +46,6 @@ jobs:
4546
name: Deploy to Server
4647
needs: docker-build-push
4748
runs-on: ubuntu-latest
48-
if: github.ref == 'refs/heads/main'
4949

5050
steps:
5151
- name: Deploy via SSH
@@ -62,4 +62,6 @@ jobs:
6262
-p 8000:8000 \
6363
-e OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} \
6464
-e OPENAI_MODEL=${{ secrets.OPENAI_MODEL }} \
65-
${{ env.IMAGE }}:latest
65+
${{ env.IMAGE }}:latest
66+
67+
docker image prune -af || true

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ COPY requirements.txt .
66
RUN pip install --no-cache-dir -r requirements.txt
77

88
COPY . .
9+
10+
RUN python -m leftovers.domain.recommend.service.train
911
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

leftovers/.DS_Store

6 KB
Binary file not shown.
File renamed without changes.

app/core/exception/global_error_handler.py renamed to leftovers/core/exception/global_error_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from fastapi.responses import JSONResponse
33
from pydantic import ValidationError
44

5-
from app.core.response.api_response import fail
5+
from leftovers.core.response.api_response import fail
66

77
# 공통 응답 포맷 생성기
88
def error_response(status: int, message: str, extra: dict = None):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from openai import OpenAI
2-
from app.core.config.config import settings # 환경설정 로더 가져오기
2+
from leftovers.core.config.config import settings # 환경설정 로더 가져오기
33

44
_cfg = settings() # settings
55

0 commit comments

Comments
 (0)