From 1e4afe89fefa39f36b5e5326f5e3b75db15c639e Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 25 Jan 2019 15:07:30 +0100 Subject: [PATCH] chg: dev: when waiting for database to start up, wait longer and display clearer message. --- bin/compose-core | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/compose-core b/bin/compose-core index 72fc12c..312524f 100755 --- a/bin/compose-core +++ b/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}:"\