From 314273d12ca5f8496329434496987868c76d9971 Mon Sep 17 00:00:00 2001 From: JiHoon Date: Fri, 19 Sep 2025 16:13:18 +0900 Subject: [PATCH] =?UTF-8?q?hotfix=20:=20Check=20ONNX=20=EC=82=AD=EC=A0=9C,?= =?UTF-8?q?=20ci-python=20=EC=8B=A4=ED=96=89=20=EA=B5=AC=EC=A1=B0=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-fastapi.yml | 6 +++--- apps/pre-processing-service/app/core/logging_config.py | 2 +- docker/production-fastapi/docker-compose.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-fastapi.yml b/.github/workflows/deploy-fastapi.yml index 102cbafa..7abd9489 100644 --- a/.github/workflows/deploy-fastapi.yml +++ b/.github/workflows/deploy-fastapi.yml @@ -49,7 +49,7 @@ jobs: username: ubuntu key: ${{ secrets.SERVER_SSH_KEY }} source: ".env.prod" - target: "~/app/docker/production/" + target: "~/app/docker/production-fastapi/" overwrite: true - name: Copy promtail-config to FastAPI EC2 @@ -59,7 +59,7 @@ jobs: username: ubuntu key: ${{ secrets.SERVER_SSH_KEY }} source: "docker/production-fastapi/promtail-config.yml" - target: "~/app/docker/production/" + target: "~/app" overwrite: true - name: Copy ONNX to FastAPI EC2 @@ -69,7 +69,7 @@ jobs: username: ubuntu key: ${{ secrets.SERVER_SSH_KEY }} source: "apps/pre-processing-service/klue_bert.onnx" - target: "~/app/models/" + target: "~/app/models/klue_bert.onnx" overwrite: false - name: Deploy on EC2 diff --git a/apps/pre-processing-service/app/core/logging_config.py b/apps/pre-processing-service/app/core/logging_config.py index 50edd1a6..595926ab 100644 --- a/apps/pre-processing-service/app/core/logging_config.py +++ b/apps/pre-processing-service/app/core/logging_config.py @@ -16,7 +16,7 @@ def setup_file_logging(): # 기존 loguru 핸들러 제거 (기본 콘솔 출력 제거) logger.remove() - log_dir = "/logs/production" + log_dir = "/logs" os.makedirs(log_dir, exist_ok=True) diff --git a/docker/production-fastapi/docker-compose.yml b/docker/production-fastapi/docker-compose.yml index 2092e3ca..f0803385 100644 --- a/docker/production-fastapi/docker-compose.yml +++ b/docker/production-fastapi/docker-compose.yml @@ -8,7 +8,7 @@ services: ports: - "80:8000" volumes: - - ./models:/app/models + - /app/models:/app/models - logs_volume:/logs depends_on: - promtail