Browse Source

chg: dev: when waiting for database to start up, wait longer and display clearer message.

hostresources
Valentin Lab 5 years ago
parent
commit
1e4afe89fe
  1. 4
      bin/compose-core

4
bin/compose-core

@ -831,7 +831,7 @@ wait_for_docker_ip() {
done < <(image_exposed_ports_0 "$container_id")
## Checking direct connection
timeout=10
timeout=30
start=$SECONDS
while true; do
if err=$(echo "SELECT 1;" | ddb 2>&1 >/dev/null); then
@ -847,7 +847,7 @@ wait_for_docker_ip() {
fi
return 18
fi
debug "Got starting up error '$err'."
debug "Got 'database system is starting up' error."
elapsed=$((SECONDS - start))
if ((elapsed > timeout)); then
err "${RED}db connection error${NORMAL}:"\

Loading…
Cancel
Save