|
|
@ -7,7 +7,7 @@ timeout 120s bash <<EOT |
|
|
|
# Wait until an HTTP request succeeds against localhost:PORT |
|
|
|
# Wait until an HTTP request succeeds against localhost:PORT |
|
|
|
function ping_server(){ |
|
|
|
function ping_server(){ |
|
|
|
while true; do |
|
|
|
while true; do |
|
|
|
if curl -sSf "http://localhost:${PORT:-80}" >/dev/null; then |
|
|
|
if curl -sSf "http://localhost:4000" >/dev/null; then |
|
|
|
exit 0 |
|
|
|
exit 0 |
|
|
|
fi |
|
|
|
fi |
|
|
|
done |
|
|
|
done |
|
|
|