komap_backup/backend/entrypoint.sh
2020-11-29 02:49:29 +00:00

16 lines
289 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 makemigrations --noinput
python manage.py migrate --no-input
python manage.py collectstatic --no-input
exec "$@"