feat: add run_pwa.sh launcher for the auction PWA
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
# Fantabeto 26/27 — Auction PWA Launcher
|
||||
# Usage: ./run_pwa.sh [port]
|
||||
set -e
|
||||
|
||||
PORT=${1:-8005}
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
echo "============================================"
|
||||
echo " Fantabeto 26/27 — Auction PWA"
|
||||
echo " Serving on port $PORT"
|
||||
echo "============================================"
|
||||
echo ""
|
||||
echo " Local: http://localhost:$PORT"
|
||||
echo " Network: http://$(hostname -I | awk '{print $1}'):$PORT"
|
||||
echo ""
|
||||
echo "Press Ctrl+C to stop."
|
||||
echo ""
|
||||
|
||||
cd "$SCRIPT_DIR"
|
||||
exec python -m uvicorn pwa.api:app \
|
||||
--host 0.0.0.0 \
|
||||
--port "$PORT"
|
||||
Reference in New Issue
Block a user