Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e22530

Browse files
authored
fix: Revert develop.sh timeout -> curl change (#5008)
It seems `--retry-all-errors` is not available on e.g. curl 7.68.0.
1 parent 8c8344c commit 5e22530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/develop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fatal() {
9696
start_cmd "${CODER_DEV_SHIM}" server --address 0.0.0.0:3000
9797

9898
echo '== Waiting for Coder to become ready'
99-
curl --silent --fail --connect-timeout 1 --max-time 1 --retry 60 --retry-delay 1 --retry-max-time 60 --retry-all-errors 'http://localhost:3000/healthz' ||
99+
timeout 60s bash -c 'until curl -s --fail http://localhost:3000/healthz > /dev/null 2>&1; do sleep 0.5; done' ||
100100
fatal 'Coder did not become ready in time'
101101

102102
# Check if credentials are already set up to avoid setting up again.

0 commit comments

Comments
 (0)