mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 01:24:56 +02:00
db pool, tweaks for usernames on browse
This commit is contained in:
parent
58108ef643
commit
f26797f5c9
3 changed files with 6 additions and 5 deletions
|
@ -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}") }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue