Radar page: Native PWA-like mobile experience
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
30
start.sh
30
start.sh
@ -20,7 +20,7 @@ NC='\033[0m' # No Color
|
||||
|
||||
# Funktion zum Beenden von Prozessen
|
||||
stop_services() {
|
||||
echo ""
|
||||
echo ""
|
||||
echo -e "${YELLOW}🛑 Beende laufende Prozesse...${NC}"
|
||||
|
||||
# Backend (uvicorn) - mehrere Versuche
|
||||
@ -50,9 +50,9 @@ echo ""
|
||||
if lsof -i:3000 >/dev/null 2>&1; then
|
||||
echo -e "${RED}✗ Port 3000 ist noch belegt!${NC}"
|
||||
lsof -i:3000
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo -e "${GREEN}✓ Alle Prozesse beendet, Ports frei${NC}"
|
||||
}
|
||||
|
||||
@ -69,14 +69,14 @@ start_backend() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source venv/bin/activate
|
||||
source venv/bin/activate
|
||||
|
||||
# Lösche altes Log
|
||||
> backend.log
|
||||
|
||||
# Starte uvicorn im Hintergrund
|
||||
nohup uvicorn app.main:app --host 0.0.0.0 --port 8000 > backend.log 2>&1 &
|
||||
BACKEND_PID=$!
|
||||
BACKEND_PID=$!
|
||||
|
||||
echo "Backend PID: $BACKEND_PID"
|
||||
|
||||
@ -107,15 +107,15 @@ start_frontend() {
|
||||
# Prüfe ob .next existiert
|
||||
if [ ! -d ".next" ]; then
|
||||
echo -e "${RED}✗ .next nicht gefunden! Bitte erst 'npm run build' ausführen.${NC}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Lösche altes Log
|
||||
> frontend.log
|
||||
|
||||
# Starte Frontend im Hintergrund
|
||||
PORT=3000 nohup npm start > frontend.log 2>&1 &
|
||||
FRONTEND_PID=$!
|
||||
FRONTEND_PID=$!
|
||||
|
||||
echo "Frontend PID: $FRONTEND_PID"
|
||||
|
||||
@ -139,8 +139,8 @@ FRONTEND_PID=$!
|
||||
fi
|
||||
echo -n "."
|
||||
done
|
||||
|
||||
echo ""
|
||||
|
||||
echo ""
|
||||
echo -e "${RED}✗ Frontend konnte nicht gestartet werden${NC}"
|
||||
echo "Letzte 30 Zeilen vom Log:"
|
||||
tail -30 frontend.log
|
||||
@ -165,15 +165,15 @@ show_status() {
|
||||
echo ""
|
||||
echo "Laufende Prozesse:"
|
||||
ps aux | grep -E "(uvicorn|next start)" | grep -v grep | awk '{print " PID " $2 ": " $11 " " $12 " " $13}'
|
||||
echo ""
|
||||
echo ""
|
||||
echo "Ports:"
|
||||
lsof -i:8000 -i:3000 2>/dev/null | grep LISTEN || echo " Keine Port-Info verfügbar"
|
||||
echo ""
|
||||
echo ""
|
||||
}
|
||||
|
||||
# Funktion zum Testen der Services
|
||||
test_services() {
|
||||
echo ""
|
||||
echo ""
|
||||
echo -e "${YELLOW}🧪 Teste Services...${NC}"
|
||||
|
||||
# Test Backend Health
|
||||
|
||||
Reference in New Issue
Block a user