django-test/entrypoint.sh

19 lines
287 B
Bash
Raw Normal View History

2022-08-26 10:41:18 +00:00
#!/bin/sh
if [ "$DATABASE" = "postgres" ]
then
echo "Waiting for postgres..."
while ! nc -z $SQL_HOST $SQL_PORT; do
sleep 0.1
done
echo "PostgreSQL started"
EXPORT IS_PRODUCTION=0
fi
# python manage.py flush --no-input
# python manage.py migrate
exec "$@"