Skip to content

Commit

Permalink
chore: 운영 B 서버 nginx 도커화
Browse files Browse the repository at this point in the history
  • Loading branch information
koust6u authored Oct 19, 2024
1 parent f1af961 commit 3f51dec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/be_cd-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ jobs:
- name: Switch NGINX to Green Port
run: |
sudo docker exec -it coduo_nginx bash -c "sed -i 's/listen 808[01];/listen ${GREEN_PORT};/' /etc/nginx/nginx.conf && nginx -s reload"
sudo sed -i "s/listen 808[01];/listen ${GREEN_PORT};/" /etc/nginx/nginx.conf
sudo docker exec -it coduo_nginx bash -c "nginx -s reload"
- name: Stop and remove the old environment
run: |
Expand Down

0 comments on commit 3f51dec

Please sign in to comment.