nextcloud / docker

⛴ Docker image of Nextcloud
https://hub.docker.com/_/nextcloud/
GNU Affero General Public License v3.0
6.09k stars 1.83k forks source link

Added docker env debug mode #2287

Closed archmagece closed 2 months ago

archmagece commented 2 months ago

There doesn't seem to be an easy way to handle debug mode when running with docker, so it would be nice to add it.

I just added log.config.php to all config/ directory.

<?php
if (getenv('NEXTCLOUD_DEBUG_MODE') !== false) {
    $CONFIG = array (
        'debug' => true,
      );
}
joshtrichards commented 2 months ago

Hi @archmagece! And thanks for contributing!

Specifying NC_debug=true as a Docker environment variable should work, though documentation for this is lacking upstream and here. See #2226.

archmagece commented 2 months ago

I got it. Thank you for your resposne.