progress on conversion to tailwind

This commit is contained in:
badblocks 2025-03-06 21:28:36 -08:00
parent 6a872124c6
commit 6e2843c60e
110 changed files with 4997 additions and 1691 deletions

View file

@ -0,0 +1,28 @@
#!/bin/bash
# Exit immediately if any command exits with a non-zero status.
set -e
# Reset the database and migrations.
echo "Resetting database and migrations..."
docker compose down \
&& docker volume prune -af \
&& find . -path "*/migrations/00*.py" -delete \
&& docker compose up -d
# Wait for the database to be ready.
echo "Waiting for the database to be ready..."
sleep 10
echo "Running makemigrations..."
docker compose exec web bash -c "python manage.py makemigrations"
echo "Running migrations..."
docker compose exec web bash -c "python manage.py migrate"
echo "Loading seed data..."
docker compose exec web bash -c "python manage.py loaddata seed/0*"
echo "Seeding default friend codes..."
docker compose exec web bash -c "python manage.py seed_default_friend_codes"
./entrypoint.sh