5bdbd6ef5f
Move deploy command to tensors namespace and replace bash script with Ruby for better error handling. Adds API health check after restart. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
855 B
855 B
Deploy Tensors to Junkpile
Deploy tensors API server to junkpile.
Run the deploy script:
ruby scripts/deploy.rb
What it does
- Sync code - Rsyncs Python code to
/opt/tensors/app/ - Fix permissions - Sets ownership to
tensors:tensors - Restart tensors - Runs
sudo systemctl restart tensors - Verify tensors - Checks service is running
- Health check - Verifies API responds
Service Structure
| Item | Value |
|---|---|
| User/Group | tensors:tensors |
| Install path | /opt/tensors/app |
| Venv | /opt/tensors/venv |
| Service | tensors.service |
| Port | 51200 |
API Endpoints
GET /status- Health checkGET /api/civitai/*- CivitAI search and fetchGET /api/db/*- Database managementGET /api/images/*- Image galleryPOST /api/download- Download models