Skip to content

Commit

Permalink
Add debug output for the DB poll
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeiP committed Aug 15, 2024
1 parent e819198 commit e70a569
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/poll-for-db
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if [ "$DATABASE_TYPE" == "mysql" ]; then
[ -f /etc/app-env ] || exec "$appdir/script/docker-environment" $0 $@

for i in {1..60}; do
echo "... Checking for connection"
nc -z -w5 db 3306 && exit
sleep 1
done
Expand Down

0 comments on commit e70a569

Please sign in to comment.