refactor: status.sh → status-coding-server.sh
Konsistente Benennung analog zu start-coding-server.sh und stop-coding-server.sh. Alle Referenzen in README, BEDIENUNGSANLEITUNG und Tests aktualisiert. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3f66d4a387
commit
9b97c9a3ee
4 changed files with 6 additions and 6 deletions
|
|
@ -68,7 +68,7 @@ prüfen beim Start die VRAM-Verfügbarkeit, was zusätzliche Zeit kostet).
|
|||
### Status prüfen
|
||||
|
||||
```bash
|
||||
./status.sh
|
||||
./status-coding-server.sh
|
||||
```
|
||||
|
||||
```
|
||||
|
|
@ -133,7 +133,7 @@ Dauer: bis zu 5 Minuten. Danach ist das Modell im VRAM und sofort antwortbereit.
|
|||
### Status prüfen
|
||||
|
||||
```bash
|
||||
./status.sh
|
||||
./status-coding-server.sh
|
||||
```
|
||||
|
||||
### Alternativer Modellpfad
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ GPU_DEVICE=0 ./start-coding-server.sh
|
|||
./stop-coding-server.sh
|
||||
|
||||
# Status prüfen
|
||||
./status.sh
|
||||
./status-coding-server.sh
|
||||
```
|
||||
|
||||
`start-coding-server.sh` startet den Container und wartet bis HTTP-ready (max. 5 Minuten — die
|
||||
|
|
@ -255,7 +255,7 @@ und Extension-Guards gegen Regressionen.
|
|||
| `tests/` | Testdateien (pure-logic, config, extension-guards, scripts) |
|
||||
| `start-coding-server.sh` | Single-Server starten (Port 8001, Coder + Judge) |
|
||||
| `stop-coding-server.sh` | Container stoppen |
|
||||
| `status.sh` | Laufstatus anzeigen |
|
||||
| `status-coding-server.sh` | Laufstatus anzeigen |
|
||||
| `install_servers_and_pi_coder_extension.sh` | Extension + models.json + settings.json nach `~/.pi/agent/` deployen |
|
||||
| `examples/` | Demo-Projekte (Python, Rust, Go, C, Bash, HTML/JS) für Live-Demos |
|
||||
| `examples/restore-all.sh` | Examples nach Demo-Lauf in Ausgangszustand zurücksetzen |
|
||||
|
|
|
|||
33
status-coding-server.sh
Executable file
33
status-coding-server.sh
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
check_server() {
|
||||
local NAME="$1"
|
||||
local PORT="$2"
|
||||
local ALIAS="$3"
|
||||
|
||||
printf "%-28s" "$NAME (Port $PORT):"
|
||||
|
||||
# Docker-Status
|
||||
if docker ps --format '{{.Names}}' | grep -q "^${NAME}\$"; then
|
||||
printf " Container=\033[32mRUNNING\033[0m"
|
||||
elif docker ps -a --format '{{.Names}}' | grep -q "^${NAME}\$"; then
|
||||
printf " Container=\033[33mSTOPPED\033[0m"
|
||||
else
|
||||
printf " Container=\033[31mNOT FOUND\033[0m"
|
||||
echo
|
||||
return
|
||||
fi
|
||||
|
||||
# HTTP-Erreichbarkeit
|
||||
if curl -s --max-time 3 "http://localhost:${PORT}/health" >/dev/null 2>&1 || \
|
||||
curl -s --max-time 3 "http://localhost:${PORT}/v1/models" >/dev/null 2>&1; then
|
||||
printf " HTTP=\033[32mOK\033[0m"
|
||||
else
|
||||
printf " HTTP=\033[31mNOT READY\033[0m"
|
||||
fi
|
||||
|
||||
echo
|
||||
}
|
||||
|
||||
echo "=== LLaMA-Server Status ==="
|
||||
check_server "coding_model" 8001 "coding_model"
|
||||
|
|
@ -33,8 +33,8 @@ test("stop-coding-server.sh stoppt den Single-Container", () => {
|
|||
assert.match(readRepoFile("stop-coding-server.sh"), /coding_model/);
|
||||
});
|
||||
|
||||
test("status.sh prüft den Single-Container", () => {
|
||||
assert.match(readRepoFile("status.sh"), /coding_model/);
|
||||
test("status-coding-server.sh prüft den Single-Container", () => {
|
||||
assert.match(readRepoFile("status-coding-server.sh"), /coding_model/);
|
||||
});
|
||||
|
||||
test("install-Skript deployt settings.json mit vorherigem Backup", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue