diff --git a/.env.example b/.env.example index 79885e5..b93fae7 100644 --- a/.env.example +++ b/.env.example @@ -14,6 +14,7 @@ BCRYPT_ROUNDS=12 LOG_CHANNEL=stack LOG_STACK=single +# The production image sets LOG_CHANNEL=stderr so the platform captures exceptions. LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug diff --git a/docker/Dockerfile b/docker/Dockerfile index 1f09a72..5b11e01 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -64,4 +64,5 @@ FROM app AS production COPY --from=assets --chown=www-data:www-data /app/public/build /var/www/html/public/build ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS=0 \ - PHP_OPCACHE_REVALIDATE_FREQ=0 + PHP_OPCACHE_REVALIDATE_FREQ=0 \ + LOG_CHANNEL=stderr