我已经在 heroku 应用程序上添加了插件,并在 Gemfile 中添加了所需的太阳黑子 gem,并且WEBSOLR_URL
heroku 配置变量中有值。
也已添加,sunspot.yml
生产设置类似于此生产:
solr:
hostname: <%=ENV["WEBSOLR_URL"]%>
port: 8983
log_level: WARNING
但是由于此错误,heroku 上的搜索仍然会崩溃
RSolr::Error::Http (RSolr::Error::Http - 404 Not Found
2012-01-18T05:27:31+00:00 app[web.1]: Error: <html><head><title>Apache Tomcat/6.0.28 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /solr/KEY_m0/select</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/solr/a55_m0/select</u></p><p><b>description</b> <u>The requested resource (/solr/KEY_m0/select) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.28</
PS
我已经用 KEY 字替换了实际的 api 密钥。