You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
294 B
Bash
17 lines
294 B
Bash
#!/bin/sh
|
|
|
|
echo "Waiting for PostgreSQL"
|
|
|
|
while ! nc -z $DB_HOST $DB_PORT; do
|
|
sleep 0.1
|
|
done
|
|
|
|
echo "PostgreSQL started"
|
|
|
|
python manage.py flush --no-input
|
|
python manage.py migrate
|
|
python manage.py collectstatic --no-input
|
|
|
|
echo "Migratation and static file collection Successful"
|
|
|
|
exec "$@" |