Skip to content

Commit

Permalink
Fix docker permissions for log files
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Aug 16, 2024
1 parent d362108 commit a028f1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dev/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ VOLUME /var/www/uploads

RUN mkdir -p /var/www/uploads \
&& chown -R www-data:www-data /var/www/uploads
&& chown -R www-data:www-data /var/www/logs
&& chown -R www-data:www-data /var/www/cache
1 change: 1 addition & 0 deletions app/Core/Providers/Logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function register()
'single' => [
'driver' => 'single',
'path' => !empty($app['config']['logPath']) ? $app['config']['logPath'] : APP_ROOT . '/logs/leantime.log',
'permission' => 0664,
],
'deprecations' => [
'driver' => 'single',
Expand Down

0 comments on commit a028f1e

Please sign in to comment.