bistro/backend/entrypoint.sh
2024-12-16 16:35:12 +01:00

17 lines
258 B
Bash
Executable File

#!/bin/sh
echo "Waiting for postgres..."
while ! nc -z db 5432; do
sleep 0.1
done
echo "PostgreSQL started"
# python manage.py flush --no-input
# python manage.py migrate
python manage.py collectstatic --no-input --clear > /dev/null 2>&1 &
exec "$@"