Remove custom 503 view from node refresh
This commit is contained in:
parent
94ba7b1eac
commit
0035bc0049
|
|
@ -76,9 +76,9 @@ public function handle(): int
|
||||||
|
|
||||||
if (! $skipMaintenance) {
|
if (! $skipMaintenance) {
|
||||||
$this->writeProgress(16, 'Blocco accessi e maintenance mode', 'running');
|
$this->writeProgress(16, 'Blocco accessi e maintenance mode', 'running');
|
||||||
$maintenanceExit = Artisan::call('down', ['--retry' => 60, '--refresh' => 15, '--render' => 'errors.503']);
|
$maintenanceExit = Artisan::call('down', ['--retry' => 60, '--refresh' => 15]);
|
||||||
$maintenanceOutput = trim((string) Artisan::output());
|
$maintenanceOutput = trim((string) Artisan::output());
|
||||||
$fullOutput[] = 'NODE REFRESH: php artisan down --retry=60 --refresh=15 --render=errors.503';
|
$fullOutput[] = 'NODE REFRESH: php artisan down --retry=60 --refresh=15';
|
||||||
$fullOutput[] = $maintenanceOutput;
|
$fullOutput[] = $maintenanceOutput;
|
||||||
|
|
||||||
if ($maintenanceExit !== 0) {
|
if ($maintenanceExit !== 0) {
|
||||||
|
|
|
||||||
|
|
@ -1,132 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="it">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta http-equiv="refresh" content="15">
|
|
||||||
<title>NetGescon in aggiornamento</title>
|
|
||||||
<style>
|
|
||||||
:root {
|
|
||||||
color-scheme: light;
|
|
||||||
--bg: #f3efe7;
|
|
||||||
--panel: #fffdf8;
|
|
||||||
--ink: #1f2937;
|
|
||||||
--muted: #6b7280;
|
|
||||||
--accent: #0f766e;
|
|
||||||
--accent-soft: #ccfbf1;
|
|
||||||
--border: #d6d3d1;
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
min-height: 100vh;
|
|
||||||
font-family: Georgia, "Times New Roman", serif;
|
|
||||||
background:
|
|
||||||
radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 32%),
|
|
||||||
linear-gradient(180deg, #faf7f2 0%, var(--bg) 100%);
|
|
||||||
color: var(--ink);
|
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
padding: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel {
|
|
||||||
width: min(760px, 100%);
|
|
||||||
background: var(--panel);
|
|
||||||
border: 1px solid var(--border);
|
|
||||||
border-radius: 24px;
|
|
||||||
padding: 32px;
|
|
||||||
box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
|
|
||||||
}
|
|
||||||
|
|
||||||
.eyebrow {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 8px;
|
|
||||||
padding: 8px 12px;
|
|
||||||
border-radius: 999px;
|
|
||||||
background: var(--accent-soft);
|
|
||||||
color: var(--accent);
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: 700;
|
|
||||||
letter-spacing: 0.08em;
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
margin: 20px 0 12px;
|
|
||||||
font-size: clamp(32px, 5vw, 52px);
|
|
||||||
line-height: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 18px;
|
|
||||||
line-height: 1.65;
|
|
||||||
color: var(--muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
||||||
gap: 14px;
|
|
||||||
margin-top: 26px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
border: 1px solid var(--border);
|
|
||||||
border-radius: 18px;
|
|
||||||
background: #fff;
|
|
||||||
padding: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card strong {
|
|
||||||
display: block;
|
|
||||||
margin-bottom: 6px;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card span {
|
|
||||||
color: var(--muted);
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.foot {
|
|
||||||
margin-top: 24px;
|
|
||||||
padding-top: 18px;
|
|
||||||
border-top: 1px solid var(--border);
|
|
||||||
font-size: 14px;
|
|
||||||
color: var(--muted);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<main class="panel">
|
|
||||||
<div class="eyebrow">Aggiornamento in corso</div>
|
|
||||||
<h1>NetGescon torna subito operativo.</h1>
|
|
||||||
<p>Il sito sta completando un aggiornamento tecnico. La pagina si ricarica automaticamente tra pochi secondi, quindi di solito non serve fare altro.</p>
|
|
||||||
|
|
||||||
<section class="grid">
|
|
||||||
<div class="card">
|
|
||||||
<strong>Cosa sta succedendo</strong>
|
|
||||||
<span>Il nodo sta riallineando codice, cache, viste e servizi interni.</span>
|
|
||||||
</div>
|
|
||||||
<div class="card">
|
|
||||||
<strong>Cosa fare</strong>
|
|
||||||
<span>Attendi il refresh automatico oppure ricarica manualmente tra 15-30 secondi.</span>
|
|
||||||
</div>
|
|
||||||
<div class="card">
|
|
||||||
<strong>Se persiste</strong>
|
|
||||||
<span>Se la schermata resta visibile a lungo, l'aggiornamento potrebbe essere ancora in esecuzione sul server.</span>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<div class="foot">Messaggio di manutenzione temporanea durante l'aggiornamento del nodo.</div>
|
|
||||||
</main>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Loading…
Reference in New Issue
Block a user