Files
tensors/.claude/commands/deploy.md
T
Adam Ladachowski 1d1cd36594 💬 Commit message: Update 2026-02-15 08:34:49, 38 files, 4477 lines
📁 Files changed: 38
📝 Lines changed: 4477

  • deploy.md
  • .coverage
  • deploy.sh
  • cli.py
  • comfy.py
  • __init__.py
  • comfy_routes.py
  • index-BEOoAFTp.css
  • index-Wi7i1Rks.js
  • materialdesignicons-webfont-B7mPwVP_.ttf
  • materialdesignicons-webfont-CSr8KVlo.eot
  • materialdesignicons-webfont-Dp5v-WZN.woff2
  • materialdesignicons-webfont-PXm3-2wK.woff
  • index.html
  • vite.svg
  • .gitignore
  • extensions.json
  • README.md
  • index.html
  • package-lock.json
  • package.json
  • vite.svg
  • App.vue
  • client.ts
  • vue.svg
  • DownloadsPanel.vue
  • GalleryView.vue
  • GenerateView.vue
  • ModelCard.vue
  • SearchView.vue
  • main.ts
  • app.ts
  • index.ts
  • vite-env.d.ts
  • tsconfig.app.json
  • tsconfig.json
  • tsconfig.node.json
  • vite.config.ts
2026-02-15 08:34:49 +01:00

35 lines
807 B
Markdown

# Deploy Tensors to Junkpile
Deploy tensors API server to junkpile.
Run the deploy script:
```bash
./scripts/deploy.sh
```
## What it does
1. **Sync code** - Rsyncs Python code to `/opt/tensors/app/`
2. **Fix permissions** - Sets ownership to `tensors:tensors`
3. **Restart tensors** - Runs `sudo systemctl restart tensors`
4. **Verify tensors** - Checks service is running
## Service Structure
| Item | Value |
|------|-------|
| User/Group | `tensors:tensors` |
| Install path | `/opt/tensors/app` |
| Venv | `/opt/tensors/venv` |
| Service | `tensors.service` |
| Port | 8081 |
## API Endpoints
- `GET /status` - Health check
- `GET /api/civitai/*` - CivitAI search and fetch
- `GET /api/db/*` - Database management
- `GET /api/images/*` - Image gallery
- `POST /api/download` - Download models