Answers for "run redis on localhost"

0

redis localhost url

if Rails.env.production?
  puts "production: #{ENV['REDIS_URL']}"
  uri = URI.parse(ENV["REDIS_URL"])
else
  puts "not production"
  uri = URI.parse("redis://localhost:6379")
end
Posted by: Guest on October-24-2021
0

run redis server

$ docker run -p 6379:6379 -d redis:5
Posted by: Guest on October-25-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language