Rename /deploy to /tensors:deploy and rewrite in Ruby

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>
This commit is contained in:
Adam Ladachowski
2026-02-16 13:45:11 +01:00
parent 74a5136d6e
commit 5bdbd6ef5f
3 changed files with 86 additions and 50 deletions
@@ -5,7 +5,7 @@ Deploy tensors API server to junkpile.
Run the deploy script:
```bash
./scripts/deploy.sh
ruby scripts/deploy.rb
```
## What it does
@@ -14,6 +14,7 @@ Run the deploy script:
2. **Fix permissions** - Sets ownership to `tensors:tensors`
3. **Restart tensors** - Runs `sudo systemctl restart tensors`
4. **Verify tensors** - Checks service is running
5. **Health check** - Verifies API responds
## Service Structure