SocketError (getaddrinfo: Name or service not known) - Sunspot/Solr Rails development

前端 未结 7 938
轮回少年
轮回少年 2020-12-15 07:15

I have had lots of trouble with deploying my rails 3.0.10 application to Ubuntu 10.04 server with Passenger, Capistrano, nginx and MySQL (and even more trouble with apache2)

7条回答
  •  我在风中等你
    2020-12-15 08:08

    I added this line

    require 'resolv-replace'

    to my controller file where the error was coming from and it worked for me. Hope it works for you too!

提交回复
热议问题