static and media url fix

This commit is contained in:
javad committed 2026-09-11 12:42:30 +03:30
1 parent 3a8f428461
commit 372f962f0f
7 files changed
+47 -9

No files matched your search

+6 -2
View File
@@ -40,8 +40,12 @@ if [ "${RUN_STARTUP_TASKS:-0}" = "1" ]; then
seed_dir="${PRODUCTION_SEED_DIR:-/app/production-seed}"
seed_available=0
if [ -f "$seed_dir/manifest.json" ]; then
echo "==> Importing production seed (idempotent)..."
seed_applied="$(python manage.py shell -c 'from apps.core.models import ProductionSeedState; print("1" if ProductionSeedState.objects.exists() else "0")')"
if [ "$seed_applied" = "1" ]; then
echo "==> Production seed was already applied; skipping seed import."
seed_available=1
elif [ -f "$seed_dir/manifest.json" ]; then
echo "==> Importing production seed for the first and only time..."
python manage.py import_production_seed "$seed_dir"
seed_available=1
elif [ "${REQUIRE_PRODUCTION_SEED:-1}" = "1" ]; then