12 lines
200 B
Bash
12 lines
200 B
Bash
#!/bin/sh
|
|
|
|
echo "Waiting for postgres..."
|
|
python wait_for_db.py
|
|
echo "PostgreSQL started"
|
|
|
|
python manage.py makemigrations
|
|
python manage.py migrate
|
|
python manage.py collectstatic --noinput
|
|
|
|
exec "$@"
|