set uv cache dir in deployment env vars
This commit is contained in:
parent
fdfed693ff
commit
6dd52cea03
2 changed files with 2 additions and 3 deletions
|
@ -54,3 +54,5 @@ spec:
|
|||
secretKeyRef:
|
||||
name: database-creds
|
||||
key: POSTGRESQL_DB
|
||||
- name: UV_CACHE_DIR
|
||||
value: /app/.uvcache
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue