Ben, thanks so much for the detailed instructions. I’ve followed it all the way down to the eb deploy stage (including your 3 config files from your 10/24/2016 update). Unfortunately the deployment fails. It aborts when it tries to configure the connection between Sidekiq and Redis via the sidekiq.rb initializer.
Here’s the error message I’m getting:
URI::InvalidURIError: bad URI(is not URI?): redis://#{redis_config[:host]}:#{redis_config[:port]}/12Here is my sidekiq.rb file:
rails_root = Rails.root || File.dirname(__FILE__) + “/../..”
rails_env = Rails.env || ‘development’
redis_config = YAML.load_file(rails_root.to_s + “/config/redis.yml”)
redis_config.merge! redis_config.fetch(Rails.env, {})
redis_config.symbolize_keys!
Sidekiq.configure_server do |config|
config.redis = { url: ‘redis://#{redis_config[:host]}:#{redis_config[:port]}/12’ }
end
Sidekiq.configure_client do |config|
config.redis = { url: ‘redis://#{redis_config[:host]}:#{redis_config[:port]}/12’ }
end
And here is my redis.yml file: (note: I obfuscated my ElastiCache node endpoint below)
development:
host: ‘localhost’
port: ‘6379’
test:
host: ‘localhost’
port: ‘6379’
production:
host: ‘myobfuscatednode.use1.cache.amazonaws.com’
port: ‘6379’
Any thoughts on what I’m doing wrong? Thanks in advance! :)
