Update docs to use default local run commands

This commit is contained in:
Jage9
2026-02-24 22:14:23 -05:00
parent 404384416e
commit d7be6d999a
2 changed files with 39 additions and 10 deletions

View File

@@ -4,30 +4,36 @@
```bash
cd /home/jjm/code/chgrid/server
.venv/bin/python main.py --config config.toml --port 8765
.venv/bin/python main.py
```
## Start Client
```bash
cd /home/jjm/code/chgrid/client
npm run dev -- --host 0.0.0.0 --port 5173
npm run dev
```
Open: `http://localhost:5173`
Defaults:
- Server reads `config.toml` automatically when present.
- Server default bind/port is `127.0.0.1:8765`.
- Client dev default is `localhost:5173`.
- Auth requires `CHGRID_AUTH_SECRET` in environment.
## Quick Restarts
Server:
```bash
lsof -tiTCP:8765 -sTCP:LISTEN | xargs -r kill
cd /home/jjm/code/chgrid/server
nohup .venv/bin/python main.py --config config.toml --port 8765 > /tmp/chgrid-server.log 2>&1 &
nohup .venv/bin/python main.py > /tmp/chgrid-server.log 2>&1 &
```
Client:
```bash
lsof -tiTCP:5173 -sTCP:LISTEN | xargs -r kill
cd /home/jjm/code/chgrid/client
nohup npm run dev -- --host 0.0.0.0 --port 5173 > /tmp/chgrid-client.log 2>&1 &
nohup npm run dev > /tmp/chgrid-client.log 2>&1 &
```