feat(avocet): add restart-api command to manage.sh

This commit is contained in:
pyr0ball 2026-03-15 17:04:00 -07:00
parent 74ba9103cd
commit 606917f90f

View file

@ -96,6 +96,7 @@ usage() {
echo " Vue API:"
echo -e " ${GREEN}start-api${NC} Build Vue SPA + start FastAPI on port 8503"
echo -e " ${GREEN}stop-api${NC} Stop FastAPI server"
echo -e " ${GREEN}restart-api${NC} Stop + rebuild + restart FastAPI server"
echo -e " ${GREEN}open-api${NC} Open Vue UI in browser (http://localhost:8503)"
echo ""
echo " Dev:"
@ -305,6 +306,11 @@ case "$CMD" in
fi
;;
restart-api)
bash "$0" stop-api
exec bash "$0" start-api
;;
open-api)
URL="http://localhost:8503"
info "Opening ${URL}"