@php $supportUpdateAuthUser = auth()->user(); $supportCanRunUpdate = $supportUpdateAuthUser && method_exists($supportUpdateAuthUser, 'hasAnyRole') && $supportUpdateAuthUser->hasAnyRole(['super-admin', 'admin', 'amministratore']); @endphp
Launcher esterno per update e sync Git
Usa questa pagina per lanciare aggiornamenti senza restare dentro la pagina completa Modifiche mentre Livewire e i file vengono riallineati.
@if(! $supportCanRunUpdate)
I lanci update/sync sono abilitati solo per super-admin, admin e amministratore.
@endif
Sync Git da Gitea
Flusso consigliato per staging e nodi interni.
Aggiorna staging da Gitea Aggiorna avanzamento Git
@if($this->gitSyncInProgress)
@else
@endif
Avanzamento sync Git {{ (int) $this->gitSyncProgressPercent }}%
{{ $this->gitSyncProgressMessage }}
@if(filled($this->lastGitSyncIssue))
{{ $this->lastGitSyncIssue }}
@endif
Stato nodo
Branch locale: {{ $this->gitCurrentBranch ?? '-' }}
Commit locale: {{ $this->gitCurrentCommit ?? '-' }}
Commit remoto: {{ $this->gitRemoteCommit ?? '-' }}
Tracking: {{ $this->gitAheadBehind }}
Working tree: {{ $this->gitWorkingTreeDirty ? 'sporco' : 'pulito' }}
Ultima sync Git: {{ $this->lastGitSyncAt ?? '-' }}
Ultimo update: {{ $this->lastUpdateAt ?? '-' }}
Aggiornamento distribution
Usare solo quando il manifest update sul server distribution e valido.
Lancia aggiornamento Lancia aggiornamento (riserva) Check connettivita update optimize:clear Rebuild view
@if($this->updateInProgress)
@else
@endif
Avanzamento aggiornamento {{ (int) $this->updateProgressPercent }}%
{{ $this->updateProgressMessage }}
@if(filled($this->lastUpdateIssue))
{{ $this->lastUpdateIssue }}
@endif
Esito e backup
Exit update: {{ $this->lastUpdateExitCode !== null ? $this->lastUpdateExitCode : '-' }}
Exit sync Git: {{ $this->lastGitSyncExitCode !== null ? $this->lastGitSyncExitCode : '-' }}
Backup snapshot: {{ $this->latestBackupSummary['snapshot_id'] ?? '-' }}
Backup creato il: {{ $this->latestBackupSummary['created_at'] ?? '-' }}
@if(filled($this->lastConnectivityCheckOutput))
Ultimo check connettivita
{{ $this->lastConnectivityCheckOutput }}
@endif