Created
April 8, 2015 07:32
-
-
Save phuongnd08/c3f97c1d847c7d0274c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REDIS_WEBSOCKET_URL = ENV['REDIS_WEBSOCKET'] || "redis://localhost:6379/0" | |
| REDIS_SIDEKIQ_URL = ENV['REDIS_SIDEKIQ'] || "redis://localhost:6379/0" | |
| Redis.current = Redis.new(url: REDIS_SIDEKIQ_URL, driver: :hiredis) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require_relative "redis" | |
| Sidekiq.configure_server do |config| | |
| config.redis = { url: REDIS_SIDEKIQ_URL } | |
| end | |
| Sidekiq.configure_client do |config| | |
| config.redis = { url: REDIS_SIDEKIQ_URL } | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require_relative "redis" | |
| SocketIo.redis = Redis.new(url: REDIS_WEBSOCKET_URL, driver: :hiredis) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment