Goondex/scripts/run.sh
Stu Leak 2b4a2038fa Add JAV studios reference documentation and various UI improvements
- Add comprehensive JAV studios quick reference guide
- Update documentation index with JAV reference
- Add logo animation components and test files
- Update CSS styling for cards, buttons, forms, and theme
- Add utility scripts for configuration and import workflows
- Update templates and UI components

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-28 16:36:38 -05:00

27 lines
673 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "$ROOT/scripts/env.sh"
ADDR="${ADDR:-localhost:8788}"
# Auto-stop if already running on the same port
if command -v lsof >/dev/null 2>&1; then
pids=$(lsof -t -i "@${ADDR#*:}:${ADDR##*:}" 2>/dev/null)
if [[ -n "$pids" ]]; then
echo "Stopping existing goondex on $ADDR (pids: $pids)"
kill $pids 2>/dev/null || true
sleep 0.5
fi
fi
# Build if missing
if [[ ! -x "$ROOT/bin/goondex" ]]; then
echo "Binary not found; building first..."
"$ROOT/scripts/build.sh"
fi
echo "Starting Goondex web UI on http://$ADDR"
"$ROOT/bin/goondex" web --addr "$ADDR"