generated from bisco/codex-bootstrap
feat: build headless theatre laboratory website
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
attempt=1
|
||||
until python manage.py migrate --noinput; do
|
||||
if [ "$attempt" -ge 10 ]; then
|
||||
echo "Database migrations failed after $attempt attempts." >&2
|
||||
exit 1
|
||||
fi
|
||||
attempt=$((attempt + 1))
|
||||
sleep 2
|
||||
done
|
||||
|
||||
python manage.py collectstatic --noinput
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user