Skip to content

Commit

Permalink
feat: 포트 변경 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
flydog98 committed Dec 18, 2023
1 parent e98aa44 commit bd4675f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ jobs:
port: ${{ secrets.NGINX_SSH_PORT }}
script: |
if [ "$CURRENT_STATE" = "green" ]; then
sed -i 's/proxy_pass http:\/\/[a-zA-Z0-9\.\-]+:8080;/proxy_pass http:\/\/[a-zA-Z0-9\.\-]+:8081;/' /etc/nginx/sites-available/default
sed -i 's/8080/8081/' /etc/nginx/sites-available/default
else
sed -i 's/proxy_pass http:\/\/[a-zA-Z0-9\.\-]+:8081;/proxy_pass http:\/\/[a-zA-Z0-9\.\-]+:8080;/' /etc/nginx/sites-available/default
sed -i 's/8081/8080/' /etc/nginx/sites-available/default
fi
sudo nginx -s reload

0 comments on commit bd4675f

Please sign in to comment.