[deployment] fix issue with timeout invocation

pull/235/head
Paul Schoenfelder 7 years ago
parent 48918d06fb
commit 8f2458b9bc
  1. 6
      bin/deployment/health_check

@ -2,6 +2,8 @@
set -x
# Timeout after 2 min if we still haven't gotten a response
timeout 120s bash <<EOT
# Wait until an HTTP request succeeds against localhost:PORT
function ping_server(){
while true; do
@ -11,5 +13,5 @@ function ping_server(){
done
}
# Timeout after 2 min if we still haven't gotten a response
timeout 120s ping_server
ping_server
EOT

Loading…
Cancel
Save