Files
nouri-App/start.sh
T

17 lines
302 B
Bash
Executable File

#!/bin/sh
set -eu
export NOURI_DATA_DIR="${NOURI_DATA_DIR:-/app/data}"
mkdir -p "${NOURI_DATA_DIR}/uploads"
if [ -z "${NOURI_SECRET_KEY:-}" ]; then
export NOURI_SECRET_KEY="cloudron-dev-secret"
fi
exec gunicorn \
--bind 0.0.0.0:8000 \
--workers 2 \
--threads 4 \
--timeout 60 \
wsgi:app