Skip to content

Commit

Permalink
chore: 운영 B 서버 Nignx 로컬화
Browse files Browse the repository at this point in the history
  • Loading branch information
koust6u authored Oct 19, 2024
1 parent cb5e08e commit 524e8f8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/be_cd-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ jobs:
run: |
until sudo docker inspect --format '{{json .State.Status}}' coduo_springboot-app-${GREEN_PORT} | grep "running"; do sleep 5; done
- name: Switch NGINX to Green Port
- name: Reload NGINX
run: |
sudo sed -i "s/listen 808[01];/listen ${GREEN_PORT};/" /etc/nginx/nginx.conf
sudo systemctl reload nginx
- name: Stop and remove the old environment
Expand Down Expand Up @@ -203,10 +202,9 @@ jobs:
run: |
until sudo docker inspect --format '{{json .State.Status}}' coduo_springboot-app-${GREEN_PORT} | grep "running"; do sleep 5; done
- name: Switch NGINX to Green Port
- name: Reload NGINX
run: |
sudo sed -i "s/listen 808[01];/listen ${GREEN_PORT};/" /etc/nginx/nginx.conf
sudo docker exec -i coduo_nginx bash -c "nginx -s reload"
sudo systemctl reload nginx
- name: Stop and remove the old environment
run: |
Expand Down

0 comments on commit 524e8f8

Please sign in to comment.