From d373f48bc834c6b5fbf72268f27476eb04f870df Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 3 Nov 2017 14:19:41 +1100 Subject: [PATCH] feat: allow configuration to be loaded from database --- pact_broker/config.ru | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pact_broker/config.ru b/pact_broker/config.ru index 5f29e05..f667428 100644 --- a/pact_broker/config.ru +++ b/pact_broker/config.ru @@ -11,6 +11,8 @@ app = PactBroker::App.new do | config | config.database_connection.timezone = :utc end +PactBroker.configuration.load_from_database! + basic_auth_username = ENV.fetch('PACT_BROKER_BASIC_AUTH_USERNAME','') basic_auth_password = ENV.fetch('PACT_BROKER_BASIC_AUTH_PASSWORD', '') use_basic_auth = basic_auth_username != '' && basic_auth_password != ''