diff --git a/.gitea/workflows/staging_code_pull.yml b/.gitea/workflows/staging_code_pull.yml index c658fd95..c9387d9d 100644 --- a/.gitea/workflows/staging_code_pull.yml +++ b/.gitea/workflows/staging_code_pull.yml @@ -157,6 +157,9 @@ jobs: # [주의] DB 초기화 스크립트는 '새로운 볼륨'에서만 실행됨. docker compose -f staging_pull_compose.yaml down || true + # 코드 변경 반영을 위해 build 수행 (userfront nginx.conf 등) + docker compose -f staging_pull_compose.yaml build --pull + docker compose -f staging_pull_compose.yaml up -d --remove-orphans # 배포 후 상태 확인 (실패 시 로그 출력을 위함) diff --git a/userfront/nginx.conf b/userfront/nginx.conf index 8a4fcffa..cf6d3780 100644 --- a/userfront/nginx.conf +++ b/userfront/nginx.conf @@ -22,6 +22,10 @@ log_format json_combined escape=json server { listen 5000; include /etc/nginx/mime.types; + types { + application/javascript mjs; + application/wasm wasm; + } error_log /dev/stderr warn; access_log /var/log/nginx/access.log json_combined;