Sha256: 1782f34a4ee29d0b4a60bd0b0601e3853551a125cba14d3146f9099bdc4f3f29
Contents?: true
Size: 776 Bytes
Versions: 9
Compression:
Stored size: 776 Bytes
Contents
require 'fileutils' require 'logger' require 'sequel' require 'pact_broker' # Create a real database, and set the credentials for it here # It is highly recommended to set the encoding to utf8 (varchar foreign keys may blow up otherwise) DATABASE_CREDENTIALS = {database: "pact_broker_database.sqlite3", adapter: "sqlite", :encoding => 'utf8'} # Have a look at the Sequel documentation to make decisions about things like connection pooling # and connection validation. 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(DATABASE_CREDENTIALS.merge(:logger => config.logger)) end run app
Version data entries
9 entries across 9 versions & 1 rubygems