File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 50
50
AI_PROMPT : ${{ secrets.AI_PROMPT }}
51
51
AI_API_URL : ${{ secrets.AI_API_URL }}
52
52
AI_API_KEY : ${{ secrets.AI_API_KEY }}
53
- run : docker-compose build backend
53
+ run : docker-compose up -d -- build backend
54
54
55
55
deploy :
56
56
name : Deploy on Server
@@ -60,13 +60,16 @@ jobs:
60
60
- name : Checkout Repository
61
61
uses : actions/checkout@v4
62
62
63
+ - name : Clean client/dist
64
+ run : rm -rf client/dist
65
+
63
66
- name : Download client-dist
64
67
uses : actions/download-artifact@v4
65
68
with :
66
69
name : client-dist
67
70
path : client/dist
68
71
69
- - name : Start Services
72
+ - name : Reload Nginx
70
73
env :
71
74
NODE_ENV : production
72
75
MONGO_URI : ${{ secrets.MONGO_URI }}
76
79
AI_PROMPT : ${{ secrets.AI_PROMPT }}
77
80
AI_API_URL : ${{ secrets.AI_API_URL }}
78
81
AI_API_KEY : ${{ secrets.AI_API_KEY }}
79
- run : docker-compose up -d --no-build
82
+ run : docker-compose up -d --no-build --force-recreate nginx
80
83
81
84
- name : Cleanup
82
85
run : docker image prune -f
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ server {
63
63
location / {
64
64
root /usr/share/nginx/html; # React 빌드 결과물이 위치한 디렉터리
65
65
index index.html; # 기본 진입점 파일
66
- try_files $uri /index.html; # SPA 라우팅 지원
66
+ try_files $uri $uri/ /index.html; # SPA 라우팅 지원
67
67
}
68
68
69
69
# 404 에러 페이지 설정
You can’t perform that action at this time.
0 commit comments