fix: move admin server to port 8090 (avoids webhook receiver on 8900), set CANTEEN_DB_PATH to shared assets.db
This commit is contained in:
@@ -3,10 +3,11 @@
|
|||||||
# CANTEEN_DB_PATH defaults to ../canteen-asset-tracker/assets.db
|
# CANTEEN_DB_PATH defaults to ../canteen-asset-tracker/assets.db
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
PORT="${PORT:-8900}"
|
PORT="${PORT:-8090}"
|
||||||
HOST="${HOST:-0.0.0.0}"
|
HOST="${HOST:-0.0.0.0}"
|
||||||
|
CANTEEN_DB_PATH="${CANTEEN_DB_PATH:-$(dirname "$0")/../canteen-asset-tracker/assets.db}"
|
||||||
|
|
||||||
exec python -m uvicorn admin_server:app \
|
exec env CANTEEN_DB_PATH="$CANTEEN_DB_PATH" python -m uvicorn admin_server:app \
|
||||||
--host "$HOST" \
|
--host "$HOST" \
|
||||||
--port "$PORT" \
|
--port "$PORT" \
|
||||||
--reload \
|
--reload \
|
||||||
|
|||||||
Reference in New Issue
Block a user