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