mirror of
https://github.com/neocities/neocities.git
synced 2025-07-14 06:45:06 +02:00
Fix HUP fork restart of database, and speed up postgres hits
This commit is contained in:
parent
a004489e43
commit
a0299d0e46
4 changed files with 10 additions and 1 deletions
|
@ -12,7 +12,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']
|
||||
DB = Sequel.connect $config['database'], sslmode: 'disable'
|
||||
|
||||
Dir.glob('workers/*.rb').each {|w| require File.join(DIR_ROOT, "/#{w}") }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue