17 lines
258 B
Bash
Executable File
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 "$@"
|