db pool, tweaks for usernames on browse

This commit is contained in:
Kyle Drake 2013-06-26 12:55:22 -07:00
parent 58108ef643
commit f26797f5c9
3 changed files with 6 additions and 5 deletions

View file

@ -14,7 +14,7 @@ Bundler.require :development if ENV['RACK_ENV'] == 'development'
$config = YAML.load_file(File.join(DIR_ROOT, 'config.yml'))[ENV['RACK_ENV']]
DB = Sequel.connect $config['database'], sslmode: 'disable'
DB = Sequel.connect $config['database'], sslmode: 'disable', max_connections: $config['database_pool']
Dir.glob('workers/*.rb').each {|w| require File.join(DIR_ROOT, "/#{w}") }