mirror of
https://github.com/manualdousuario/marreta.git
synced 2025-04-09 15:19:09 +00:00
criada pasta de tarefas cli com analisador de logs
This commit is contained in:
parent
b66f3abe80
commit
7f1bf662e3
3 changed files with 4 additions and 5 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -1,9 +1,8 @@
|
|||
vendor/
|
||||
composer.lock
|
||||
.env
|
||||
app/logs/*.log
|
||||
app/cache/*.html
|
||||
app/cache/*.gz
|
||||
app/logs
|
||||
app/cache
|
||||
TODO.md
|
||||
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/composer,windows,macos,linux
|
||||
|
|
|
@ -26,7 +26,7 @@ if (php_sapi_name() !== 'cli') {
|
|||
}
|
||||
|
||||
// Caminho para o arquivo de log
|
||||
$logFile = __DIR__ . '/error.log';
|
||||
$logFile = __DIR__ . '/../logs/error.log';
|
||||
|
||||
// Verifica se o arquivo de log existe
|
||||
if (!file_exists($logFile)) {
|
|
@ -12,7 +12,7 @@ server {
|
|||
add_header X-XSS-Protection "1; mode=block" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
|
||||
location ~ ^/(logs|cache|inc|data)/ {
|
||||
location ~ ^/(logs|cache|inc|data|cli)/ {
|
||||
return 301 /;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue