|
| 1 | +# GitHub Pages Deployment - Instructions |
| 2 | + |
| 3 | +Il sito React è stato configurato per il deployment automatico su GitHub Pages! |
| 4 | + |
| 5 | +## Cosa è stato fatto |
| 6 | + |
| 7 | +1. ✅ Creato workflow GitHub Actions (`.github/workflows/deploy-website.yml`) |
| 8 | +2. ✅ Configurato Vite con base path `/Musly/` |
| 9 | +3. ✅ Committato e pushato tutto su GitHub |
| 10 | + |
| 11 | +## Come abilitare GitHub Pages |
| 12 | + |
| 13 | +Per completare il deployment, devi abilitare GitHub Pages nelle impostazioni del repository: |
| 14 | + |
| 15 | +### Passaggi |
| 16 | + |
| 17 | +1. **Vai su GitHub** |
| 18 | + - Apri https://github.com/dddevid/Musly |
| 19 | + |
| 20 | +2. **Settings → Pages** |
| 21 | + - Nel menu laterale, clicca su **Settings** |
| 22 | + - Poi clicca su **Pages** nel menu a sinistra |
| 23 | + |
| 24 | +3. **Configura Source** |
| 25 | + - In **Source**, seleziona **GitHub Actions** dal dropdown |
| 26 | + - (Non selezionare "Deploy from a branch") |
| 27 | + |
| 28 | +4. **Salva** |
| 29 | + - GitHub Actions inizierà automaticamente il deployment |
| 30 | + |
| 31 | +5. **Verifica** |
| 32 | + - Vai nella tab **Actions** per vedere il workflow in esecuzione |
| 33 | + - Una volta completato (circa 1-2 minuti), il sito sarà disponibile a: |
| 34 | + |
| 35 | + **https://dddevid.github.io/Musly/** |
| 36 | + |
| 37 | +## Deployment Automatico |
| 38 | + |
| 39 | +Ogni volta che fai push di modifiche nella cartella `react-website/`, il sito verrà automaticamente ricompilato e pubblicato. |
| 40 | + |
| 41 | +## Verifica Deployment |
| 42 | + |
| 43 | +Puoi controllare lo stato del deployment: |
| 44 | +- Tab **Actions** su GitHub |
| 45 | +- Badge verde = deployment riuscito |
| 46 | +- Il sito sarà live su: https://dddevid.github.io/Musly/ |
| 47 | + |
| 48 | +## Troubleshooting |
| 49 | + |
| 50 | +Se il sito non funziona: |
| 51 | +1. Controlla che GitHub Pages sia configurato su **GitHub Actions** (non branch) |
| 52 | +2. Verifica che il workflow sia completato con successo nella tab Actions |
| 53 | +3. Aspetta qualche minuto - il primo deployment può richiedere tempo |
0 commit comments