This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
facturio/scripts/run.sh

22 lines
402 B
Bash
Executable file

#!/usr/bin/env bash
set -o nounset
set -o xtrace
set -o errexit
set -o pipefail
echo "Compiling messages..."
./manage.py compilemessages >/dev/null
echo "Migrating..."
./manage.py migrate --no-input
#echo "Checking for errors..."
#./manage.py check --deploy --fail-level WARNING
uvicorn \
--host 0.0.0.0 \
--port 8000 \
--workers 4 \
--lifespan off \
facturio.asgi:application