mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix: Revert develop.sh timeout -> curl change (#5008)
It seems `--retry-all-errors` is not available on e.g. curl 7.68.0.
This commit is contained in:
committed by
GitHub
parent
8c8344ca13
commit
5e2253030f
+1
-1
@@ -96,7 +96,7 @@ fatal() {
|
||||
start_cmd "${CODER_DEV_SHIM}" server --address 0.0.0.0:3000
|
||||
|
||||
echo '== Waiting for Coder to become ready'
|
||||
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' ||
|
||||
timeout 60s bash -c 'until curl -s --fail http://localhost:3000/healthz > /dev/null 2>&1; do sleep 0.5; done' ||
|
||||
fatal 'Coder did not become ready in time'
|
||||
|
||||
# Check if credentials are already set up to avoid setting up again.
|
||||
|
||||
Reference in New Issue
Block a user