Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/deploy-fastapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/pre-processing-service/app/core/logging_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion docker/production-fastapi/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
ports:
- "80:8000"
volumes:
- ./models:/app/models
- /app/models:/app/models
- logs_volume:/logs
depends_on:
- promtail
Expand Down
Loading