support standalone library

This commit is contained in:
2026-04-04 01:24:06 -07:00
parent b2ddd81286
commit d9218bf28c
13 changed files with 610 additions and 26 deletions

View File

@@ -7,7 +7,7 @@ tono can be self-hosted on any server with Python 3.10+ and Node.js 18+.
```bash
git clone https://github.com/VIPQualityPost/tono.git && cd tono
python -m venv .venv && source .venv/bin/activate
pip install -e .
pip install -e ".[server]"
cd frontend && npm ci && npm run build && cd ..
TONO_HOST=0.0.0.0 python -m backend.main
```
@@ -31,7 +31,7 @@ sudo chown tono:tono /var/lib/tono
```bash
sudo git clone https://github.com/VIPQualityPost/tono.git /opt/tono
sudo chown -R tono:tono /opt/tono
sudo -u tono bash -c 'cd /opt/tono && python3 -m venv .venv && source .venv/bin/activate && pip install -e .'
sudo -u tono bash -c 'cd /opt/tono && python3 -m venv .venv && source .venv/bin/activate && pip install -e ".[server]"'
sudo -u tono bash -c 'cd /opt/tono/frontend && npm ci && npm run build'
```