Files
canteen-admin-server/run.sh
T
Leo d2c76aea7f feat: Add Cantaloupe sync API with staged import workflow
- New cantaloupe_sync.py module with complete pipeline
- Heuristic Excel column mapping (20+ keyword patterns)
- Diff engine: detects new/changed/removed/unchanged assets
- 5 API endpoints: sync, list batches, view batch, approve, reject
- cantaloupe_sync_batches table with status workflow
- Admin server port changed to 8090
- openpyxl added to requirements.txt
2026-05-21 19:00:19 -04:00

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:-8090}"
HOST="${HOST:-0.0.0.0}"
exec python -m uvicorn admin_server:app \
--host "$HOST" \
--port "$PORT" \
--reload \
--log-level info