42 lines
945 B
Markdown
42 lines
945 B
Markdown
# Online Error Sync (Git)
|
|
|
|
Obiettivo: vedere in `supporto/modifiche` anche errori prodotti in ambiente online/staging.
|
|
|
|
## Flusso consigliato
|
|
|
|
1. Sul server online/staging, nella root progetto, eseguire:
|
|
|
|
```bash
|
|
bash scripts/ops/netgescon-export-online-errors-to-git.sh
|
|
```
|
|
|
|
1. Commit/push del file esportato:
|
|
|
|
```bash
|
|
git add docs/support/online-runtime-errors.ndjson
|
|
git commit -m "chore: export online runtime errors"
|
|
git push
|
|
```
|
|
|
|
1. In ambiente sviluppo, fare pull e aprire:
|
|
|
|
- `admin-filament/supporto/modifiche`
|
|
- TAB `Errori`
|
|
|
|
Gli errori online compariranno con origine `online-runtime-errors.git`.
|
|
|
|
## File coinvolti
|
|
|
|
- Export script: `scripts/ops/netgescon-export-online-errors-to-git.sh`
|
|
- Feed Git online: `docs/support/online-runtime-errors.ndjson`
|
|
- Dashboard supporto: `app/Filament/Pages/Supporto/Modifiche.php`
|
|
|
|
## Nota
|
|
|
|
Se il feed non compare, usare in sviluppo:
|
|
|
|
```bash
|
|
php artisan optimize:clear
|
|
php artisan view:cache
|
|
```
|