on app startup, wait until database is ready

This commit is contained in:
Andrew Dolgov 2019-11-29 10:09:28 +03:00
parent 4442decd2a
commit e343f3d09f
1 changed files with 5 additions and 0 deletions

View File

@ -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