I'm getting the above errors when I try to run rails db:seed
, which uses Sidekiq
to enqueue jobs for database generation. I've been trying a variety of fixes related to getting/setting the correct REDISCLOUD_URL
variable without success.
My redis.rb
file looks like this:
$redis = Redis.newurl = ENV["REDISCLOUD_URL"]if url Sidekiq.configure_server do |config| config.redis = { url: url } end Sidekiq.configure_client do |config| config.redis = { url: url } end $redis = Redis.new(:url => url)end
I'm sure the solution will be something to do with resolving SocketError: getaddrinfo: Name or service not known
, but having spent many hours trying to fix this I'm still stumped. Any help would be greatly appreciated!