mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-08 07:16:49 +00:00
set permissions on log file
This commit is contained in:
@@ -49,6 +49,7 @@ services:
|
||||
REDIS_URL: tcp://cache
|
||||
SESSION_DOMAIN: localhost
|
||||
BROADCAST_DRIVER: socketcluster
|
||||
MAIL_MAILER: ses
|
||||
MAIL_FROM_NAME: Fleetbase
|
||||
LOG_CHANNEL: daily
|
||||
depends_on:
|
||||
|
||||
@@ -43,6 +43,8 @@ WORKDIR /var/www/html/api
|
||||
COPY --chown=www-data:nogroup ./api ./
|
||||
RUN chown -R www-data:www-data /var/www/html/api
|
||||
RUN mkdir -p ./storage/logs/ && ln -sf /dev/stdout ./storage/logs/laravel-$(date +'%Y-%m-%d').log
|
||||
RUN chown -R www-data:www-data /var/www/html/api/storage
|
||||
RUN chmod -R 755 /var/www/html/api/storage
|
||||
USER www-data
|
||||
RUN composer install --no-cache
|
||||
RUN composer dumpautoload
|
||||
|
||||
Reference in New Issue
Block a user