First version
This commit is contained in:
16
backend/entrypoint.sh
Executable file
16
backend/entrypoint.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/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 "$@"
|
Reference in New Issue
Block a user