Feat: Wartungsseite beim Update statt roher 503
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main v1.1.280
parent
d60d228012
commit
227c623578
|
|
@ -0,0 +1,111 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="refresh" content="8">
|
||||
<title>Wartung · Mailwolt</title>
|
||||
<style>
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body {
|
||||
height: 100%;
|
||||
background: #0f1117;
|
||||
color: #e2e4ea;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.card {
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
padding: 40px 36px;
|
||||
background: #181c24;
|
||||
border: 1px solid #2a2e3d;
|
||||
border-radius: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
.logo {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.logo-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.logo-text {
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
color: #e2e4ea;
|
||||
letter-spacing: -.3px;
|
||||
}
|
||||
.spinner {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin: 0 auto 24px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid #2a2e3d;
|
||||
border-top-color: #6366f1;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
h1 {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #e2e4ea;
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: -.2px;
|
||||
}
|
||||
p {
|
||||
font-size: 13.5px;
|
||||
color: #6b7280;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.dot-row {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
margin-top: 28px;
|
||||
}
|
||||
.dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: #6366f1;
|
||||
opacity: .3;
|
||||
animation: pulse 1.4s ease-in-out infinite;
|
||||
}
|
||||
.dot:nth-child(2) { animation-delay: .2s; }
|
||||
.dot:nth-child(3) { animation-delay: .4s; }
|
||||
@keyframes pulse { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="card">
|
||||
<div class="logo">
|
||||
<div class="logo-icon">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="2" y="4" width="20" height="16" rx="2"/>
|
||||
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/>
|
||||
</svg>
|
||||
</div>
|
||||
<span class="logo-text">Mailwolt</span>
|
||||
</div>
|
||||
<div class="spinner"></div>
|
||||
<h1>Update wird durchgeführt</h1>
|
||||
<p>Das System wird gerade aktualisiert.<br>Diese Seite lädt in wenigen Sekunden automatisch neu.</p>
|
||||
<div class="dot-row">
|
||||
<div class="dot"></div>
|
||||
<div class="dot"></div>
|
||||
<div class="dot"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -56,7 +56,7 @@ restart_php_fpm(){
|
|||
}
|
||||
|
||||
artisan_down(){
|
||||
as_app "cd ${APP_DIR} && php artisan down --retry=10" 2>/dev/null || true
|
||||
as_app "cd ${APP_DIR} && php artisan down --render=errors.503 --retry=10" 2>/dev/null || true
|
||||
echo "[i] Wartungsmodus aktiviert"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue