From acdc94cd184ec8c4fc5c55ec139b3235211610ea Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 5 Mar 2026 09:00:57 +0100 Subject: [PATCH] Fix: force --no-cache on release builds; uvicorn workers=2 + keepalive --- main.py | 6 +++++- updateto.sh | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index c8e2a8b..72f1971 100644 --- a/main.py +++ b/main.py @@ -396,5 +396,9 @@ if __name__ == "__main__": "main:app", host="0.0.0.0", port=8000, - reload=False + reload=False, + workers=2, + timeout_keep_alive=65, + access_log=True, + log_level="info" ) diff --git a/updateto.sh b/updateto.sh index df21859..c7a1fe6 100644 --- a/updateto.sh +++ b/updateto.sh @@ -132,8 +132,8 @@ podman-compose -f "$PODMAN_COMPOSE_FILE" down # Pull/rebuild with new version echo "" -echo "🔨 Bygger nyt image med version $VERSION..." -if ! podman-compose -f "$PODMAN_COMPOSE_FILE" up -d --build; then +echo "🔨 Bygger nyt image med version $VERSION (--no-cache for at sikre ny kode fra Gitea)..." +if ! podman-compose -f "$PODMAN_COMPOSE_FILE" build --no-cache && podman-compose -f "$PODMAN_COMPOSE_FILE" up -d; then echo "❌ Fejl: podman-compose up fejlede" echo " Tjek logs med: podman-compose -f $PODMAN_COMPOSE_FILE logs --tail=200" exit 1