On my heroku I get error
Redis::CannotConnectError (Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)):
2016-04-14T09:25:04.155091+00:00 app[web.1]: app/controllers/users /registrations_controller.rb:123:in `send_confirmation_email'
2016-04-14T09:25:04.155092+00:00 app[web.1]: app/controllers/users/registrations_controller.rb:49:in `daycare'
I also add addon Redis to go
Your application should not try to connect to the localhost. Instead, your initializer should fetch the env var ( REDIS_URL
IIRC) and use it if it exists.
Make sure you have Redis installed. I know you said you got this on Heroku, but for example, if you were on a Mac and were using Homebrew, you could simply run brew install redis
, and you'd be good to go. (It fixed it for me, anyway.)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.