diff --git a/deploy.sh b/deploy.sh index 128bd18..cc41249 100755 --- a/deploy.sh +++ b/deploy.sh @@ -184,6 +184,8 @@ if [[ "$SKIP_MIGRATE" != "true" ]]; then echo ">>> Seeding/updating platform plugins for all tenants..." docker compose -f docker-compose.production.yml exec -T django sh -c 'export DATABASE_URL=postgres://\${POSTGRES_USER}:\${POSTGRES_PASSWORD}@\${POSTGRES_HOST}:\${POSTGRES_PORT}/\${POSTGRES_DB} && python -c " +import django +django.setup() from django_tenants.utils import get_tenant_model from django.core.management import call_command Tenant = get_tenant_model()