Files
archy/neode-ui/stop-dev.sh
Dorian 25ad68ac4c fix: BUG-33 CPU threshold, TASK-27 tab icons, TASK-36 iframe errors
- BUG-33: CPU load alert threshold increased from 2x to 4x core count
  (8→16 on 4-core machine) to reduce false alerts during container ops
- TASK-27: Launch buttons for new-tab apps now show external link icon
  (BTCPay, Grafana, PhotoPrism, Portainer, OnlyOffice, etc.)
- TASK-36: Iframe error screen now distinguishes between X-Frame-Options
  blocked vs container not reachable, with appropriate messaging

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 19:24:52 +00:00

68 lines
1.8 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# Neode Development Server Stop Script
# This script stops all running Neode dev servers
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
echo ""
echo -e "${YELLOW}🛑 Stopping Neode Development Servers...${NC}"
echo ""
# Function to kill processes on a port
kill_port() {
local port=$1
local name=$2
if lsof -ti:$port > /dev/null 2>&1; then
echo -e "${BLUE} Stopping $name on port $port...${NC}"
lsof -ti:$port | xargs kill -9 2>/dev/null || true
echo -e "${GREEN}$name stopped${NC}"
else
echo -e "${YELLOW} $name not running on port $port${NC}"
fi
}
# Stop all node processes related to Neode
echo -e "${BLUE}🔍 Finding Neode processes...${NC}"
echo ""
# Kill by port
kill_port 5959 "Mock Backend"
kill_port 8100 "Vite Dev Server"
kill_port 8101 "Vite Dev Server (alt)"
kill_port 8102 "Vite Dev Server (alt)"
echo ""
# Kill any remaining concurrently processes
if pgrep -f "concurrently.*mock-backend" > /dev/null; then
echo -e "${BLUE} Stopping concurrently processes...${NC}"
pkill -f "concurrently.*mock-backend" 2>/dev/null || true
echo -e "${GREEN} ✅ Concurrently stopped${NC}"
fi
# Kill any remaining node processes running mock-backend or vite
if pgrep -f "mock-backend.js" > /dev/null; then
echo -e "${BLUE} Stopping mock-backend.js...${NC}"
pkill -f "mock-backend.js" 2>/dev/null || true
echo -e "${GREEN} ✅ Mock backend stopped${NC}"
fi
if pgrep -f "vite.*neode-ui" > /dev/null; then
echo -e "${BLUE} Stopping vite...${NC}"
pkill -f "vite.*neode-ui" 2>/dev/null || true
echo -e "${GREEN} ✅ Vite stopped${NC}"
fi
echo ""
echo -e "${GREEN}✅ All Neode development servers stopped!${NC}"
echo ""
echo ""