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

前端 未结 7 934
轮回少年
轮回少年 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 had a similar issue, which I worked around by editing the /etc/resolv.conf

    before

    nameserver 10.0.x.x
    search example.com
    

    after

    #nameserver 10.0.x.x
    nameserver 8.8.8.8
    #search example.com
    

提交回复
热议问题