Never move a saved port on update
`llmhost update` stopped the services and checked the ports before the old processes had released them (launchctl bootout returns early), so the API hopped to the next free port and broke configured clients. Setup now waits for our own ports to close, and treats saved ports as pinned: if another program holds one it errors instead of moving. Only a first install auto-picks a free port. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QaE1hpvyZTJixEbUUMj9Ca
This commit is contained in:
parent
249c693e6d
commit
7eb72d1d79
2 changed files with 43 additions and 22 deletions
|
|
@ -25,6 +25,10 @@ Pass setup options after `--`:
|
|||
/bin/bash -c "$(curl -fsSL https://git.neilbantoc.dev/pub/llm-host/raw/branch/main/install.sh)" -- --yes --default ornith-1.5-35b
|
||||
```
|
||||
|
||||
Ports: the API defaults to 8000 and the dashboard to 8080. On a first install a busy default moves to the
|
||||
next free port; after that the ports are saved and never move on their own (clients are configured with them).
|
||||
Change them with `llmhost setup --api-port <port> --web-port <port>`. On a Mac, MLX also uses the API port + 1.
|
||||
|
||||
Preview what a machine would get without installing anything (needs only Python 3.11+):
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue