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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user