🔥(backend) remove demo data generation from tilt migration job
Remove call to generate demo data in tilt stack as it was never useful to developers and only complicated the migration job unnecessarily. Migration job should be laser focused on applying database migrations rather than seeding mock data, improving clarity and reducing complexity.
This commit is contained in:
committed by
aleb_the_flash
parent
f46a5dc157
commit
51ed277941
@@ -78,11 +78,7 @@ backend:
|
||||
- "/bin/sh"
|
||||
- "-c"
|
||||
- |
|
||||
if ! python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); import sys; sys.exit(0 if User.objects.filter(admin_email='user0@example.com').exists() else 1)"
|
||||
then
|
||||
python manage.py migrate --no-input &&
|
||||
python manage.py create_demo --force || echo "create_demo already run"
|
||||
fi
|
||||
python manage.py migrate --no-input
|
||||
restartPolicy: Never
|
||||
|
||||
command:
|
||||
|
||||
@@ -79,11 +79,7 @@ backend:
|
||||
- "/bin/sh"
|
||||
- "-c"
|
||||
- |
|
||||
if ! python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); import sys; sys.exit(0 if User.objects.filter(admin_email='user0@example.com').exists() else 1)"
|
||||
then
|
||||
python manage.py migrate --no-input &&
|
||||
python manage.py create_demo --force || echo "create_demo already run"
|
||||
fi
|
||||
python manage.py migrate --no-input
|
||||
restartPolicy: Never
|
||||
|
||||
command:
|
||||
|
||||
@@ -100,11 +100,7 @@ backend:
|
||||
- "/bin/sh"
|
||||
- "-c"
|
||||
- |
|
||||
if ! python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); import sys; sys.exit(0 if User.objects.filter(admin_email='user0@example.com').exists() else 1)"
|
||||
then
|
||||
python manage.py migrate --no-input &&
|
||||
python manage.py create_demo --force || echo "create_demo already run"
|
||||
fi
|
||||
python manage.py migrate --no-input
|
||||
restartPolicy: Never
|
||||
|
||||
command:
|
||||
|
||||
Reference in New Issue
Block a user