14 lines
332 B
Bash
14 lines
332 B
Bash
#!/usr/bin/env bash
|
|
# Run the admin server — uses same DB as main canteen-asset-tracker
|
|
# CANTEEN_DB_PATH defaults to ../canteen-asset-tracker/assets.db
|
|
set -euo pipefail
|
|
|
|
PORT="${PORT:-8900}"
|
|
HOST="${HOST:-0.0.0.0}"
|
|
|
|
exec python -m uvicorn admin_server:app \
|
|
--host "$HOST" \
|
|
--port "$PORT" \
|
|
--reload \
|
|
--log-level info
|