Skip to content

Commit

Permalink
Merge pull request #905 from sul-dlss/okcomputer-redis
Browse files Browse the repository at this point in the history
Add optional redis check to okcomputer configuration
  • Loading branch information
cbeer authored Nov 1, 2022
2 parents 7973fe1 + 2fc1826 commit 9a6453a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/initializers/okcomputer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@
OkComputer::DirectoryCheck.new(
Settings.DOWNLOAD_PATH || (Rails.root + 'tmp/cache/downloads').to_s, true
)

OkComputer::Registry.register 'redis',
OkComputer::RedisCheck.new(url: ENV.fetch('REDIS_URL') { Settings.REDIS_URL })
# rubocop:enable Layout/ArgumentAlignment

OkComputer.make_optional %w[redis]

0 comments on commit 9a6453a

Please sign in to comment.