platform-coop-toolkit / coop-map-directory-index

The Map/Directory/Index component of the Platform Cooperative Development Kit.
https://directory.platform.coop
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

feat: read debug option from environment variable #121

Closed gtirloni closed 4 years ago

gtirloni commented 4 years ago

Description

Read DEBUG from environment variable

Steps to test

  1. export DEBUG="true" (or "false")
  2. docker-compose -f docker-compose.yml up
  3. config debugging is enabled (or disabled)

Expected behavior:

DEBUG is disabled by default.

Additional information

dev.directory.platform.coop has been configured with DEBUG=true demo.directory.platform.coop doesn't have a configuration for DEBUG (so it's disabled)