Fix: force --no-cache on release builds; uvicorn workers=2 + keepalive

This commit is contained in:
Christian 2026-03-05 09:00:57 +01:00
parent ed01f07f86
commit acdc94cd18
2 changed files with 7 additions and 3 deletions

View File

@ -396,5 +396,9 @@ if __name__ == "__main__":
"main:app", "main:app",
host="0.0.0.0", host="0.0.0.0",
port=8000, port=8000,
reload=False reload=False,
workers=2,
timeout_keep_alive=65,
access_log=True,
log_level="info"
) )

View File

@ -132,8 +132,8 @@ podman-compose -f "$PODMAN_COMPOSE_FILE" down
# Pull/rebuild with new version # Pull/rebuild with new version
echo "" echo ""
echo "🔨 Bygger nyt image med version $VERSION..." echo "🔨 Bygger nyt image med version $VERSION (--no-cache for at sikre ny kode fra Gitea)..."
if ! podman-compose -f "$PODMAN_COMPOSE_FILE" up -d --build; then 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 "❌ Fejl: podman-compose up fejlede"
echo " Tjek logs med: podman-compose -f $PODMAN_COMPOSE_FILE logs --tail=200" echo " Tjek logs med: podman-compose -f $PODMAN_COMPOSE_FILE logs --tail=200"
exit 1 exit 1