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 3317f86 commit fae82aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/server-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
# μƒˆλ‘œμš΄ μ»¨ν…Œμ΄λ„ˆ μ‹€ν–‰
sudo docker run -d -p $PORT_MAPPING --name $NEW_CONTAINER_NAME --network hana_network -v /home/ubuntu/logs:/logs rlawjddn5980/hana-server:latest
docker exec -it 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 -it 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 fae82aa

Please sign in to comment.