set uv cache dir in deployment env vars
All checks were successful
Build and Deploy Staging / build (push) Successful in 46s
Build and Deploy Staging / deploy (push) Successful in 7s

This commit is contained in:
Tobias Brunner 2025-03-21 15:23:44 +01:00
parent fdfed693ff
commit 6dd52cea03
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -54,3 +54,5 @@ spec:
secretKeyRef:
name: database-creds
key: POSTGRESQL_DB
- name: UV_CACHE_DIR
value: /app/.uvcache

View file

@ -6,9 +6,6 @@ mkdir -p /app/run/caddy /app/run/gunicorn
# Set Caddy config location
export XDG_CONFIG_HOME="/app/config"
# Set uv cache location so that it runs properly on OpenShift
export UV_CACHE_DIR="/app/.uvcache"
echo "Applying database migrations"
uv run src/manage.py migrate