mirror of
https://github.com/manualdousuario/marreta.git
synced 2025-04-22 06:29: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/
|
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
|
||||||
|
|
|
@ -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)) {
|
|
@ -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 /;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue