Skip to content

Commit

Permalink
feat(db-checker): Extension of "db reachable"
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik committed Oct 21, 2024
1 parent 3b4bc23 commit 98955a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/reach_database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ wait_for_database_to_be_reachable() {
exit 1
fi
done
cat <<EOD | python manage.py shell
from django.db import connections
from django.db.utils import OperationalError
db_conn = connections['default']
c = db_conn.cursor()
EOD
exit $?
}

0 comments on commit 98955a0

Please sign in to comment.