release nouri 0.5.1 mobile nav and header fixes

This commit is contained in:
2026-04-12 17:24:37 +02:00
parent cf5157c496
commit 9ff7a6d57c
8 changed files with 204 additions and 104 deletions
+13 -10
View File
@@ -1,13 +1,16 @@
#!/bin/sh
#!/bin/bash
set -eu
export NOURI_DATA_DIR="${NOURI_DATA_DIR:-/app/data}"
mkdir -p "${NOURI_DATA_DIR}"
mkdir -p "${NOURI_DATA_DIR}/uploads"
mkdir -p /app/data/uploads
exec gunicorn \
--bind 0.0.0.0:8000 \
--workers 2 \
--threads 4 \
--timeout 60 \
wsgi:app
# Vorhandene lokale SQLite-Datei beim allerersten Start übernehmen
if [ ! -f /app/data/nouri.sqlite3 ] && [ -f /app/bootstrap-data/nouri.sqlite3 ]; then
cp /app/bootstrap-data/nouri.sqlite3 /app/data/nouri.sqlite3
fi
# Vorhandene Uploads beim allerersten Start übernehmen
if [ -d /app/bootstrap-data/uploads ] && [ -z "$(ls -A /app/data/uploads 2>/dev/null || true)" ]; then
cp -a /app/bootstrap-data/uploads/. /app/data/uploads/
fi
exec gunicorn --bind 0.0.0.0:8000 --workers 2 --threads 4 wsgi:app