criada pasta de tarefas cli com analisador de logs

This commit is contained in:
Renan Bernordi 2024-11-27 10:11:41 -03:00
parent b66f3abe80
commit 7f1bf662e3
3 changed files with 4 additions and 5 deletions

5
.gitignore vendored
View file

@ -1,9 +1,8 @@
vendor/ vendor/
composer.lock composer.lock
.env .env
app/logs/*.log app/logs
app/cache/*.html app/cache
app/cache/*.gz
TODO.md TODO.md
# Created by https://www.toptal.com/developers/gitignore/api/composer,windows,macos,linux # Created by https://www.toptal.com/developers/gitignore/api/composer,windows,macos,linux

View file

@ -26,7 +26,7 @@ if (php_sapi_name() !== 'cli') {
} }
// Caminho para o arquivo de log // Caminho para o arquivo de log
$logFile = __DIR__ . '/error.log'; $logFile = __DIR__ . '/../logs/error.log';
// Verifica se o arquivo de log existe // Verifica se o arquivo de log existe
if (!file_exists($logFile)) { if (!file_exists($logFile)) {

View file

@ -12,7 +12,7 @@ server {
add_header X-XSS-Protection "1; mode=block" always; add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always; add_header X-Content-Type-Options "nosniff" always;
location ~ ^/(logs|cache|inc|data)/ { location ~ ^/(logs|cache|inc|data|cli)/ {
return 301 /; return 301 /;
} }