尝试在 heroku 上部署 rails 应用程序时出现此错误
Running: rake assets:precompile
rake aborted!
getaddrinfo: Name or service not known
/tmp/build_3bx0fu8vccj6s/vendor/bundle/ruby/1.9.1/gems/redis-3.0.2/lib/redis/connection/ruby.rb:112:in `getaddrinfo'
/tmp/build_3bx0fu8vccj6s/vendor/bundle/ruby/1.9.1/gems/redis-3.0.2/lib/redis/connection/ruby.rb:112:in `connect'
/tmp/build_3bx0fu8vccj6s/vendor/bundle/ruby/1.9.1/gems/redis-3.0.2/lib/redis/connection/ruby.rb:174:in `connect'
/tmp/build_3bx0fu8vccj6s/vendor/bundle/ruby/1.9.1/gems/redis-3.0.2/lib/redis/client.rb:263:in `establish_connection'
/tmp/build_3bx0fu8vccj6s/vendor/bundle/ruby/1.9.1/gems/redis-3.0.2/lib/redis/client.rb:69:in `connect'
/tmp/build_3bx0fu8vccj6s/vendor/bundle/ruby/1.9.1/gems/redis-3.0.2/lib/redis/client.rb:282:in `ensure_connected'
/tmp/build_3bx0fu8vccj6s/vendor/bundle/ruby/1.9.1/gems/redis-3.0.2/lib/redis/client.rb:173:in `block in process'
/tmp/build_3bx0fu8vccj6s/vendor/bundle/ruby/1.9.1/gems/redis-3.0.2/lib/redis/client.rb:248:in `logging'
/tmp/build_3bx0fu8vccj6s/vendor/bundle/ruby/1.9.1/gems/redis-3.0.2/lib/redis/client.rb:172:in `process'