Вопрос по ruby-on-rails – развертывание redis к героку не удается подключиться

19

Error: User Rate Limit Exceeded

Errno::ECONNREFUSED (Connection refused - Unable to connect to Redis on 127.0.0.1:6379):

Error: User Rate Limit ExceededError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

SocketError (getaddrinfo: nodename nor servname provided, or not known):

Error: User Rate Limit Exceeded

Resque.after_fork = Proc.new { ActiveRecord::Base.establish_connection }

ENV["redis://redistogo:[email protected]:9254/"] ||= "redis://heroku_username:[email protected]:9254/"
uri = URI.parse(ENV["redis://redistogo:[email protected]:9254/"])
Resque.redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

ОБНОВИТЬ.

@kevin

Error: User Rate Limit Exceeded

uri = URI.parse(ENV["my_url_string"] || "redis://localhost:9254/" )
REDIS = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)

Error: User Rate Limit Exceeded

Errno::ECONNREFUSED (Connection refused - Unable to connect to Redis on 127.0.0.1:6379):

Значения числа в ошибке, т.е. 127.0.0.1:6379 значимы? я проверил мое приложение redis gui, а также из конфигурации heroku, что мой номер порта 9254

REDISTOGO_URL       => redis://redistogo:[email protected]:9254/

Error: User Rate Limit Exceeded

ЗАКЛЮЧИТЕЛЬНОЕ ОБНОВЛЕНИЕ.

Error: User Rate Limit Exceeded

uri = URI.parse(ENV["REDISTOGO_URL"])
REDIS = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
Resque.redis = REDIS

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded Aray
Error: User Rate Limit Exceededconfig/initializers/redis.rb pcv

Ваш Ответ

3   ответа
11

heroku config:set REDIS_PROVIDER=REDISCLOUD_URL

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceededgithub.com/mperham/sidekiq/wiki/Using-Redis
Error: User Rate Limit Exceeded
40

/config/initializers/redis.rb

uri = URI.parse(ENV["REDISTOGO_URL"] || "redis://localhost:6379/" )
REDIS = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)

REDISTOGO_URL

heroku config --app my_app

REDISTOGO_URL

REDISTOGO_URL

Verify you have your REDIS_TO_GO URL in your heroku config from the command line like I've demonstrated above. Verify the REDIS_TO_GO URL is identical to the one assigned to that instance in the Add Ons -> Redis To Go config.
Error: User Rate Limit Exceeded Sasha
Error: User Rate Limit Exceeded Sasha
Error: User Rate Limit Exceeded Sasha
Error: User Rate Limit Exceededdevcenter.heroku.com/articles/rails-unicorn#caveatsError: User Rate Limit Exceededredistogo.com/documentation/resque
Error: User Rate Limit Exceededheroku labs:enable user-env-compile -a myappError: User Rate Limit Exceeded
15

uri = URI.parse(ENV["REDISTOGO_URL"])
REDIS = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
Resque.redis = REDIS

Похожие вопросы