From c5f2e8e449821893388a2f4c407b37c91fee6ae8 Mon Sep 17 00:00:00 2001 From: nilsding Date: Fri, 12 Dec 2014 17:35:16 +0100 Subject: [PATCH] added Sidekiq initializer --- config/initializers/15_sidekiq.rb | 7 +++++++ config/justask.yml.example | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 config/initializers/15_sidekiq.rb diff --git a/config/initializers/15_sidekiq.rb b/config/initializers/15_sidekiq.rb new file mode 100644 index 00000000..2dd4a530 --- /dev/null +++ b/config/initializers/15_sidekiq.rb @@ -0,0 +1,7 @@ +Sidekiq.configure_server do |config| + config.redis = { url: APP_CONFIG['redis_url'] } +end + +Sidekiq.configure_client do |config| + config.redis = { url: APP_CONFIG['redis_url'] } +end \ No newline at end of file diff --git a/config/justask.yml.example b/config/justask.yml.example index 6d7756fb..7565421c 100644 --- a/config/justask.yml.example +++ b/config/justask.yml.example @@ -17,3 +17,5 @@ sharing: facebook: enabled: false +# Redis +redis_url: "redis://localhost:6379" \ No newline at end of file