Files
homelab-optimized/dashboard/api/start.sh
Gitea Mirror Bot e71c8ddb4b
Some checks failed
Documentation / Build Docusaurus (push) Failing after 5m5s
Documentation / Deploy to GitHub Pages (push) Has been skipped
Sanitized mirror from private repository - 2026-04-20 01:24:42 UTC
2026-04-20 01:24:42 +00:00

18 lines
406 B
Bash
Executable File

#!/usr/bin/env bash
# Launch the Homelab Dashboard API on homelab-vm.
# Sources .env (BAIKAL_PASS etc.) before handing off to uvicorn.
set -euo pipefail
cd "$(dirname "$(readlink -f "$0")")"
if [[ -f .env ]]; then
set -a
# shellcheck disable=SC1091
source ./.env
set +a
fi
exec /usr/bin/python3 /home/homelab/.local/bin/uvicorn main:app \
--host 0.0.0.0 --port "${DASHBOARD_API_PORT:-18888}"