Sha256: f581e945034c4d3f54e3f74089003b5d8ee151f7ef602e63103b8196eb70baa0
Contents?: true
Size: 555 Bytes
Versions: 2
Compression:
Stored size: 555 Bytes
Contents
require "fileutils" require "logger" require "sequel" require "pact_broker" require "pg" use Rack::Auth::Basic, "Restricted Area" do |username, password| username == ENV["PACT_BROKER_USERNAME"] and password == ENV["PACT_BROKER_PASSWORD"] end app = PactBroker::App.new do | config | # change these from their default values if desired # config.log_dir = "./log" # config.auto_migrate_db = true # config.use_hal_browser = true config.database_connection = Sequel.connect(ENV["DATABASE_URL"], adapter: "postgres", encoding: "utf8") end run app
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-2.81.0 | example/basic_auth/config.ru |
pact_broker-2.80.0 | example/basic_auth/config.ru |