This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
: "${DATABASE_URL:?Stel DATABASE_URL in op een afzonderlijke vacatureradar_bench_* PostgreSQL-database.}"
|
||||
export PUBLIC_BASE_URL="${PUBLIC_BASE_URL:-https://benchmark.invalid}"
|
||||
export DJANGO_DEBUG=0
|
||||
export DJANGO_SECRET_KEY="${DJANGO_SECRET_KEY:-benchmark-only-secret-key-not-for-production-000000000000000000}"
|
||||
export CELERY_TASK_ALWAYS_EAGER=1
|
||||
export OLLAMA_ENABLED=0
|
||||
export EMAIL_BACKEND=django.core.mail.backends.locmem.EmailBackend
|
||||
|
||||
if command -v uv >/dev/null 2>&1; then
|
||||
exec uv run python -m scripts.benchmark_import "$@"
|
||||
fi
|
||||
exec .venv/bin/python -m scripts.benchmark_import "$@"
|
||||
Reference in New Issue
Block a user