From e343f3d09f03f932495e0790a4e33c4221a10045 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Nov 2019 10:09:28 +0300 Subject: [PATCH] on app startup, wait until database is ready --- app/startup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/startup.sh b/app/startup.sh index 4eba7df..0282b7a 100755 --- a/app/startup.sh +++ b/app/startup.sh @@ -1,5 +1,10 @@ #!/bin/sh -ex +while ! pg_isready -h $DB_HOST; do + echo waiting until $DB_HOST is ready... + sleep 3 +done + DST_DIR=/var/www/html/tt-rss SRC_REPO=https://git.tt-rss.org/fox/tt-rss.git