Merge pull request 'Added optional feature-flag files' (#177) from internal/feature-flags into 0.3.1
Reviewed-on: sh-edraft.de/kd_discord_bot#177 Reviewed-by: Ebola-Chan <nick.jungmann@gmail.com> Reviewed-by: edraft-dev <dev.sven.heidemann@sh-edraft.de>
This commit is contained in:
commit
c443d108dc
@ -1 +1 @@
|
|||||||
Subproject commit 9262f4f88f68f8461cfbc0a5ef3f4d89edf78c7b
|
Subproject commit 28bd879dab2e5ea6ca8bb38e44c7786eb67cb7a2
|
@ -31,6 +31,8 @@ class StartupSettingsExtension(StartupExtensionABC):
|
|||||||
configuration.add_json_file(f'config/appsettings.{environment.host_name}.json', optional=True)
|
configuration.add_json_file(f'config/appsettings.{environment.host_name}.json', optional=True)
|
||||||
# load feature-flags
|
# load feature-flags
|
||||||
configuration.add_json_file(f'config/feature-flags.json', optional=False)
|
configuration.add_json_file(f'config/feature-flags.json', optional=False)
|
||||||
|
configuration.add_json_file(f'config/feature-flags.{environment.environment_name}.json', optional=True)
|
||||||
|
configuration.add_json_file(f'config/feature-flags.{environment.host_name}.json', optional=True)
|
||||||
|
|
||||||
configuration.add_configuration('Startup_StartTime', str(self._start_time))
|
configuration.add_configuration('Startup_StartTime', str(self._start_time))
|
||||||
self._configure_settings_with_sub_settings(configuration, BotSettings, lambda x: x.servers, lambda x: x.id)
|
self._configure_settings_with_sub_settings(configuration, BotSettings, lambda x: x.servers, lambda x: x.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user