Skip to content

Commit

Permalink
Update server-action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
friendshipkim97 authored Aug 14, 2024
1 parent f0a5a44 commit e33d397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/server-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
# μƒˆλ‘œμš΄ μ»¨ν…Œμ΄λ„ˆ μ‹€ν–‰
sudo docker run -d -p $PORT_MAPPING --name $NEW_CONTAINER_NAME --network hana_network -v /home/ubuntu/logs:/logs rlawjddn5980/hana-server:latest
sudo docker exec nginx sh -c 'sed -i "s/set \$service_ip .*/set \$service_ip \"$NEW_CONTAINER_NAME\";/" /etc/nginx/conf.d/service-url.inc && sed -i "s/set \$service_port .*/set \$service_port \"$TARGET_PORT\";/" /etc/nginx/conf.d/service-url.inc && nginx -s reload'
sudo docker exec nginx sh -c 'sed -i "s/set \$service_ip .*/set \$service_ip \"'"$NEW_CONTAINER_NAME"'\";/" /etc/nginx/conf.d/service-url.inc; sed -i "s/set \$service_port .*/set \$service_port \"'"$TARGET_PORT"'\";/" /etc/nginx/conf.d/service-url.inc; nginx -s reload'
# Nginx μž¬μ‹œμž‘ μž„μ‹œλ‘œ .. λ‚˜μ€‘μ— 무쀑단 λ³€κ²½
sudo docker exec nginx nginx -s reload
Expand Down

0 comments on commit e33d397

Please sign in to comment.