Sanitized mirror from private repository - 2026-04-20 01:32:01 UTC
This commit is contained in:
17
dashboard/api/start.sh
Executable file
17
dashboard/api/start.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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}"
|
||||
Reference in New Issue
Block a user