Skip to content

A free open source IT asset/license management system

Improvement: Change the logging channel to storage/logs/laravel.log file in dev container

Anouar Touatie33c680679ef
diff --git a/.env.dev.docker b/.env.dev.docker
index 983063bbd1..633c36453b 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 d9d6c8a9af..0c99b013bc 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