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

23 lines
400 B
Bash
Raw Permalink Normal View History

2025-02-24 15:48:52 +01:00
#!/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
2025-03-03 22:20:55 +01:00
echo "Checking for errors..."
./manage.py check --deploy --fail-level WARNING
2025-02-24 15:48:52 +01:00
uvicorn \
--host 0.0.0.0 \
--port 8000 \
--workers 4 \
--lifespan off \
2025-02-24 15:48:52 +01:00
facturio.asgi:application