Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566#!/usr/bin/env fish
# Content Filter Dashboard Startup Script
echo "๐ก๏ธ Starting Content Filter Dashboard..."echo ""
# Check if Ollama is runningif not pgrep -f "ollama serve" > /dev/null echo "โ Ollama daemon is not running!" echo " Start it with: ac-llama start" exit 1end
echo "โ
Ollama daemon is running"
# Check if gemma2:2b model is availableif not ollama list | grep -q "gemma2:2b" echo "โ ๏ธ Model gemma2:2b not found!" echo " Pull it with: ollama pull gemma2:2b" exit 1end
echo "โ
Model gemma2:2b is available"
# Start the API server in the backgroundecho ""echo "๐ Starting API server on port 3000..."node /workspaces/aesthetic-computer/censor/api-server.mjs &set api_pid $last_pid
sleep 2
# Start Caddyecho "๐ Starting Caddy web server on port 8080..."caddy run --config /workspaces/aesthetic-computer/censor/Caddyfile &set caddy_pid $last_pid
sleep 2
echo ""echo "โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ"echo "โจ Content Filter Dashboard is ready!"echo "โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ"echo ""echo "๐ Dashboard: http://localhost:8080"echo "๐ API Server: http://localhost:3000/api/filter"echo ""echo "Press Ctrl+C to stop all services"echo ""
# Wait for interruptfunction cleanup echo "" echo "๐ Stopping services..." kill $api_pid $caddy_pid 2>/dev/null echo "โ
All services stopped"end
trap cleanup INT TERM
# Keep script runningwhile true sleep 1end