#!/bin/bash # Quick check of the currently running version echo "🔍 Quick check of Gitea Webhook Ambassador version..." # Check Python version (port 8000) if lsof -i :8000 > /dev/null 2>&1; then PID=$(lsof -ti :8000) PROCESS=$(ps -p $PID -o comm= 2>/dev/null) if echo "$PROCESS" | grep -q "python\|uvicorn"; then echo "🐍 Python version is running (PID: $PID)" echo "🌐 http://localhost:8000" echo "📊 http://localhost:8000/dashboard" exit 0 fi fi # Check Go version (port 8080) if lsof -i :8080 > /dev/null 2>&1; then PID=$(lsof -ti :8080) PROCESS=$(ps -p $PID -o comm= 2>/dev/null) if echo "$PROCESS" | grep -q "gitea-webhook-ambassador"; then echo "🚀 Go version is running (PID: $PID)" echo "🌐 http://localhost:8080" exit 0 fi fi echo "❌ No version is running" echo "💡 Use './devbox start' to start the Python version"