From e33c680679ef2113c60b65eb4dab777c9a80662d Mon Sep 17 00:00:00 2001 From: Anouar Touati Date: Sun, 29 Dec 2024 02:29:41 -0500 Subject: [PATCH] Improvement: Change the logging channel to storage/logs/laravel.log file in dev container --- .env.dev.docker | 2 +- docker/startup_alpine.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.dev.docker b/.env.dev.docker index 983063bbd1ce..633c36453b15 100644 --- a/.env.dev.docker +++ b/.env.dev.docker @@ -158,7 +158,7 @@ RESET_PASSWORD_LINK_EXPIRES=900 # -------------------------------------------- # OPTIONAL: MISC # -------------------------------------------- -LOG_CHANNEL=stderr +LOG_CHANNEL=single LOG_MAX_DAYS=10 APP_LOCKED=false APP_CIPHER=AES-256-CBC diff --git a/docker/startup_alpine.sh b/docker/startup_alpine.sh index d9d6c8a9af27..0c99b013bc59 100644 --- a/docker/startup_alpine.sh +++ b/docker/startup_alpine.sh @@ -103,6 +103,7 @@ php artisan migrate --force php artisan config:clear php artisan config:cache +touch /var/www/html/storage/logs/laravel.log chown -R apache:root /var/www/html/storage/logs/laravel.log export APACHE_LOG_DIR=/var/log/apache2