feat(avocet): add restart-api command to manage.sh
This commit is contained in:
parent
74ba9103cd
commit
606917f90f
1 changed files with 6 additions and 0 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue