We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42f115c commit 18a34eeCopy full SHA for 18a34ee
1 file changed
drucker/utils/__init__.py
@@ -20,7 +20,7 @@ def __init__(self, config_file: str):
20
config = dict()
21
if settings_yaml is not None:
22
config = yaml.load(open(settings_yaml, 'r'))
23
- self.TEST_MODE = os.getenv("DRUCKER_TEST_MODE", config.get("test", "False")) == 'True'
+ self.TEST_MODE = os.getenv("DRUCKER_TEST_MODE", str(config.get("test", "False"))) == 'True'
24
self.SERVICE_PORT = os.getenv("DRUCKER_SERVICE_PORT", config.get("app.port", "5000"))
25
self.APPLICATION_NAME = os.getenv("DRUCKER_APPLICATION_NAME", config["app.name"])
26
self.SERVICE_NAME = os.getenv("DRUCKER_SERVICE_NAME", config["app.service.name"])
0 commit comments