Aggiunge proxy edge con pagina di cortesia e rilascio a downtime minimo.
NPM punta a nginx locale su :3000 che resta attivo durante il restart Rails; nuovo script release_production.sh esegue migrate, build e deploy in ordine. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
102
infra/nginx-edge/maintenance.html
Normal file
102
infra/nginx-edge/maintenance.html
Normal file
@@ -0,0 +1,102 @@
|
||||
<!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">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<title>Aggiornamento in corso — Match Live TV</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--bg: #0f1115;
|
||||
--card: #1a1d24;
|
||||
--text: #f2f4f8;
|
||||
--muted: #9aa3b2;
|
||||
--accent: #e53935;
|
||||
--accent-soft: rgba(229, 57, 53, 0.15);
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
background:
|
||||
radial-gradient(circle at top, rgba(229, 57, 53, 0.12), transparent 42%),
|
||||
var(--bg);
|
||||
color: var(--text);
|
||||
padding: 24px;
|
||||
}
|
||||
.card {
|
||||
width: min(520px, 100%);
|
||||
background: var(--card);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 16px;
|
||||
padding: 32px 28px;
|
||||
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
|
||||
text-align: center;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 6px 12px;
|
||||
border-radius: 999px;
|
||||
background: var(--accent-soft);
|
||||
color: #ffb4b0;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
h1 {
|
||||
margin: 0 0 12px;
|
||||
font-size: 1.6rem;
|
||||
line-height: 1.25;
|
||||
}
|
||||
p {
|
||||
margin: 0 0 14px;
|
||||
color: var(--muted);
|
||||
line-height: 1.55;
|
||||
}
|
||||
.spinner {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
margin: 22px auto 8px;
|
||||
border: 3px solid rgba(255, 255, 255, 0.12);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.9s linear infinite;
|
||||
}
|
||||
.brand {
|
||||
margin-top: 22px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: #fff;
|
||||
}
|
||||
.hint {
|
||||
margin-top: 10px;
|
||||
font-size: 0.82rem;
|
||||
color: #6f7888;
|
||||
}
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main class="card" role="main" aria-live="polite">
|
||||
<div class="badge">Manutenzione rapida</div>
|
||||
<h1>Stiamo aggiornando la piattaforma</h1>
|
||||
<p>
|
||||
Il servizio torna online tra pochi secondi. Le dirette RTMP e i replay già pubblicati
|
||||
non sono interessati da questo aggiornamento.
|
||||
</p>
|
||||
<div class="spinner" aria-hidden="true"></div>
|
||||
<p class="hint">Questa pagina si aggiorna automaticamente.</p>
|
||||
<div class="brand">Match Live TV</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user