-2

尝试在 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'
4

1 回答 1

0

在 heroku 实验室中启用 User_env_compile

heroku labs:enable user-env-compile

然后重新部署您的应用程序。更多信息请访问https://devcenter.heroku.com/articles/labs-user-env-compile

于 2013-04-04T15:07:56.970 回答