17 lines
272 B
Bash
17 lines
272 B
Bash
#!/bin/sh
|
|
|
|
echo "Waiting for postgres..."
|
|
|
|
#while ! nc -z $SQL_HOST $SQL_PORT; do
|
|
# sleep 0.1
|
|
#done
|
|
|
|
echo "PostgreSQL started"
|
|
|
|
python manage.py flush --no-input
|
|
python manage.py makemigrations
|
|
python manage.py migrate
|
|
python manage.py collectstatic --noinput
|
|
|
|
exec "$@"
|