vanity

Vanity, Rails 3 and Heroku

冷暖自知 提交于 2019-12-22 04:59:09
问题 I'm trying to get Vanity to play nicely with Heroku and my Rails 3 app. At the moment, it all works fine locally using Pow and a local Redis server, but when I push to Heroku using the RedisToGo add-on, nothing seems to get the server running, I just get the error: getaddrinfo: Name or service not known . Here's my config/vanity.yml file: staging: adapter: redis host: <%= ENV["REDISTOGO_URL"] %> and my config/initializers/redis.rb: uri = URI.parse(ENV["REDISTOGO_URL"]) REDIS = Redis.new(:host

Vanity, Rails 3 and Heroku

二次信任 提交于 2019-12-05 05:37:34
I'm trying to get Vanity to play nicely with Heroku and my Rails 3 app. At the moment, it all works fine locally using Pow and a local Redis server, but when I push to Heroku using the RedisToGo add-on, nothing seems to get the server running, I just get the error: getaddrinfo: Name or service not known . Here's my config/vanity.yml file: staging: adapter: redis host: <%= ENV["REDISTOGO_URL"] %> and my config/initializers/redis.rb: uri = URI.parse(ENV["REDISTOGO_URL"]) REDIS = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password) I've also tried using the actual redis://