Add debug output for the DB poll

This commit is contained in:
Jyri-Petteri Paloposki 2024-08-15 13:16:14 +03:00
parent e81919888e
commit e70a569511

View file

@ -7,6 +7,7 @@ if [ "$DATABASE_TYPE" == "mysql" ]; then
[ -f /etc/app-env ] || exec "$appdir/script/docker-environment" $0 $@ [ -f /etc/app-env ] || exec "$appdir/script/docker-environment" $0 $@
for i in {1..60}; do for i in {1..60}; do
echo "... Checking for connection"
nc -z -w5 db 3306 && exit nc -z -w5 db 3306 && exit
sleep 1 sleep 1
done done