mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Merge pull request #473 from alexbarcelo/asset-precompile-fix
Avoid Redis connectivity on initialization
This commit is contained in:
commit
1fd4ade537
1 changed files with 3 additions and 1 deletions
|
|
@ -25,4 +25,6 @@ Sidekiq.configure_client do |config|
|
||||||
config.redis = { url: ENV['REDIS_URL'] }
|
config.redis = { url: ENV['REDIS_URL'] }
|
||||||
end
|
end
|
||||||
|
|
||||||
Sidekiq::Queue['reverse_geocoding'].limit = 1 if PHOTON_API_HOST == 'photon.komoot.io'
|
if (defined?(Rails::Server) || Sidekiq.server?) && PHOTON_API_HOST == 'photon.komoot.io'
|
||||||
|
Sidekiq::Queue['reverse_geocoding'].limit = 1
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue