Fix: force --no-cache on release builds; uvicorn workers=2 + keepalive
This commit is contained in:
parent
ed01f07f86
commit
acdc94cd18
6
main.py
6
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"
|
||||
)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user