mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 13:19:03 +01:00
7b0fe4aef9
* Fix opening and closing Redis connections instead of using a pool * Fix Redis connections not being returned to the pool in CLI commands
6 lines
261 B
Ruby
6 lines
261 B
Ruby
require 'stoplight'
|
|
|
|
Rails.application.reloader.to_prepare do
|
|
Stoplight::Light.default_data_store = Stoplight::DataStore::Redis.new(RedisConfiguration.new.connection)
|
|
Stoplight::Light.default_notifiers = [Stoplight::Notifier::Logger.new(Rails.logger)]
|
|
end
|