Skip to content

Commit

Permalink
feat: allow configuration to be loaded from database
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 3, 2017
1 parent ac020c5 commit d373f48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pact_broker/config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -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 != ''
Expand Down

0 comments on commit d373f48

Please sign in to comment.