Skip to content

Commit

Permalink
Move error templates to 'dist/errors' to support Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
mbardelmeijer committed Mar 18, 2024
1 parent d2b8920 commit d596dcc
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
foreach ($codes as $code) {
$rendered = $twig->render('codes/' . $code . '.twig', ['code' => $code]);

file_put_contents(__DIR__ . '/dist/' . $code . '.html', $rendered);
file_put_contents(__DIR__ . '/dist/errors/' . $code . '.html', $rendered);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion symlink.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
foreach ($codes as $code) {
exec('chown www-data: ' . escapeshellarg(__DIR__ . '/dist/' . $code . '.html'));

exec('ln -s ' . escapeshellarg(__DIR__ . '/dist/' . $code . '.html') . ' ' . escapeshellarg('../custom_' . $code . '.html'));
exec('ln -s ' . escapeshellarg(__DIR__ . '/dist/errors/' . $code . '.html') . ' ' . escapeshellarg('../custom_' . $code . '.html'));
}

0 comments on commit d596dcc

Please sign in to comment.