Skip to content

Commit

Permalink
restart gateways to load certs
Browse files Browse the repository at this point in the history
  • Loading branch information
davegarvey committed Aug 5, 2024
1 parent 1716f8e commit 3c12db9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions deployments/load-balancer-nginx/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ deployment="Load Balancer"
log_start_deployment
bootstrap_progress

# log_message "Restart Gateways to load latest certificates"
# docker restart tyk-demo-tyk-gateway-3-1 tyk-demo-tyk-gateway-4-1 1>/dev/null 2>>logs/bootstrap.log
# if [ "$?" != 0 ]; then
# echo "Error when restart Gateways to load latest certificates"
# exit 1
# fi
# log_ok
log_message "Restart Gateways to load latest certificates"
eval $(generate_docker_compose_command) up -d --no-deps --force-recreate tyk-gateway-3 tyk-gateway-4 1>/dev/null 2>>logs/bootstrap.log
if [ "$?" != 0 ]; then
echo "Error when restart Gateways to load latest certificates"
exit 1
fi
log_ok

log_message "Restart nginx to reset load balancer"
docker restart tyk-demo-nginx-1 1>/dev/null 2>>logs/bootstrap.log
Expand Down

0 comments on commit 3c12db9

Please sign in to comment.