Skip to content

Commit a38ee43

Browse files
authored
Merge pull request #24 from 316filip/main
Main
2 parents f7ba610 + 56128e6 commit a38ee43

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

public/maintenance.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
http_response_code(503);
3+
header('Refresh: ' . 60);
4+
?>
5+
6+
<!DOCTYPE html>
7+
<html lang="cs">
8+
<head class="h-screen">
9+
<meta charset="UTF-8">
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
11+
<title>Knihovna</title>
12+
<script src="https://cdn.tailwindcss.com"></script>
13+
</head>
14+
<body class="h-screen">
15+
<div class="w-full h-full flex flex-col items-center justify-center">
16+
<h1 class="font-mono text-4xl text-center">Právě probíhá údržba webu</h1>
17+
<p class="text-xl text-center">Prosím, zkuste to později.</p>
18+
</div>
19+
</body>
20+
</html>

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,5 @@
132132

133133
// CRON route for some hosting services
134134
Route::get('/work', function () {
135-
Artisan::call('queue:work', ['--stop-when-empty' => true]);
135+
Artisan::call('queue:work', ['--stop-when-empty' => true, '--max-time' => 60*14]);
136136
});

0 commit comments

Comments
 (0)