Main Avalanche Network server application. Built with Ruby on Rails.
if Rails.env.production? || Rails.env.test? REDIS_WORKER = Redis.new(:host => 'localhost', :port => 6379) else uri = URI.parse(ENV["REDISTOGO_URL"]) REDIS_WORKER = Redis.new(host: uri.host, port: uri.port, password: uri.password) end