File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2828 script : |
2929 sudo docker rm -f $(docker ps -aqf "name=^${{secrets.DOCKERHUB_REPO}}") # 컨테이너 찾아서 종료
3030 sudo docker pull ${{secrets.DOCKERHUB_USERNAME}}/${{secrets.DOCKERHUB_REPO}}:latest
31- sudo docker run -d -p 80:80 --name ${{secrets.DOCKERHUB_REPO}} ${{secrets.DOCKERHUB_USERNAME}}/${{secrets.DOCKERHUB_REPO}}:latest
31+ sudo docker run \
32+ -e VITE_API_URL=${{ secrets.VITE_API_URL }} \
33+ -d -p 80:80 \
34+ --name ${{secrets.DOCKERHUB_REPO}} \
35+ ${{secrets.DOCKERHUB_USERNAME}}/${{secrets.DOCKERHUB_REPO}}:latest
3236 sudo docker image prune -f
Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ RUN rm /etc/nginx/conf.d/default.conf
2525# nginx 템플릿 복사
2626COPY nginx.conf.template /etc/nginx/templates/
2727
28- # 환경변수 설정
29- ENV BACKEND_URL=http://localhost:8080
30-
3128# 빌드된 정적 파일 복사
3229COPY --from=builder /app/build /usr/share/nginx/html
3330
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export default defineConfig({
88 open : true ,
99 proxy : {
1010 '/api' : {
11- target : 'http://localhost:8080' ,
11+ target : process . env . VITE_API_URL || 'http://localhost:8080' ,
1212 changeOrigin : true ,
1313 rewrite : ( path ) => path . replace ( / ^ \/ a p i / , '' )
1414 }
You can’t perform that action at this time.
0 commit comments