Remove health-check for Postgres (it's now in docker-compose.yml)

This commit is contained in:
Benjamin Bach 2024-07-24 11:33:28 +02:00
parent 2fd9df8cc6
commit 0f1211fa83
No known key found for this signature in database
GPG key ID: 486F0D69C845416E

View file

@ -1,16 +1,5 @@
#!/bin/sh
echo "Waiting for postgres..."
POSTGRES_PORT=${POSTGRES_PORT:-5432}
POSTGRES_HOST=${POSTGRES_HOST:-localhost}
while ! nc -z "$POSTGRES_HOST" "$POSTGRES_PORT"; do
sleep 0.1
done
echo "PostgreSQL started"
# Only migrate, collectstatic and compilemessages if we are NOT in development
if [ -z "$DEBUG" ]; then
python src/manage.py migrate;