← ClaudeAtlas

deploy-productionlisted

Workflow unificato per deploy Docker+Traefik su VPS. Supporta deploy backend-only, frontend-only, full, e no-cache per tutti i progetti con Docker Compose + Traefik + Let's Encrypt.
thomascasali/claude-kb-workflow · ★ 2 · AI & Automation · score 73
Install: claude install-skill thomascasali/claude-kb-workflow
# Deploy Production Skill ## Quando usare questa skill - Deploy di qualsiasi progetto su VPS Linux con Docker Compose - Troubleshooting container Docker in produzione - Setup nuovo progetto su VPS esistente - Migrazione tra VPS ## Infrastruttura VPS (esempio di organizzazione multi-VPS) | Ruolo | Provider tipo | Shell di default | Note | |-------|---------------|------------------|------| | **VPS-A** (es. produzione principale) | Provider economico Europa | spesso `fish` su immagini default — usare `bash -c` | Configurare SSH su porta non standard (es. 2222) | | **VPS-B** (es. produzione secondaria) | Provider premium Europa | `bash` | SSH key + porta non standard | | **Edge** (es. IoT / dev locale) | Raspberry Pi / NUC | `bash` | LAN o tunnel SSH | > Adatta la tabella al tuo setup. La logica della skill è agnostica rispetto al provider. ## REGOLA FONDAMENTALE ``` deploy.sh è LOCALE (sul PC Windows), NON sul VPS! ``` ## Workflow Deploy Standard ### 1. Pre-deploy: Commit e Push ```bash # SEMPRE: modifiche devono essere su Git PRIMA del deploy cd D:/progetti/PROGETTO git add -A && git commit -m "fix: descrizione" && git push origin main ``` ### 2. Scelta Flag Deploy ```bash # Solo backend (PHP/Node.js) — 15 secondi ./deploy.sh --backend-only # Solo frontend (Vue/React rebuild) — 30-60 secondi ./deploy.sh --frontend-only # Full deploy (entrambi) — 1-2 minuti ./deploy.sh # Nuove dipendenze (composer/npm install) — 3-5 minuti ./deploy.sh --no-cache # REGOLA: NON usa