这些是我看到 Rails 应用程序的错误页面时的日志。关于如何解决这个问题的任何建议?
2013-04-12T15:10:04.081764+00:00 app[web.1]: Started GET "/" for 76.170.69.45 at 2013-04-12 15:10:04 +0000
2013-04-12T15:10:04.088093+00:00 app[web.1]: SocketError (getaddrinfo: Name or service not known):
2013-04-12T15:10:04.084702+00:00 app[web.1]: Processing by ReviewsController#index as HTML
2013-04-12T15:10:04.088093+00:00 app[web.1]:
2013-04-12T15:10:04.086820+00:00 app[web.1]: Completed 500 Internal Server Error in 2ms
2013-04-12T15:10:04.088093+00:00 app[web.1]:
2013-04-12T15:10:04.088093+00:00 app[web.1]: app/controllers/reviews_controller.rb:5:in `index'
2013-04-12T15:10:04.450002+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=infinite-meadow-4922.herokuapp.com fwd="76.170.69.45" dyno=web.1 connect=1ms service=6ms status=304 bytes=0
这是我的评论控制器。它指的是全文行。我正在使用似乎在开发环境中工作的 Sunspot gem。
class ReviewsController < ApplicationController
def index
# SUNSPOT/SOLR SEARCH RESULTS
@search = Review.search do
fulltext params[:search]
end
@reviews_search_results = @search.results
# END SUNSPOT/SOLR SECTION
@reviews = Review.all
@pro_string = ''
@reviews.each do |review|
@pro_string = @pro_string + ' ' + review.pro
end
# CALL METHOD TO FIND MOST POPULAR PHRASES, TAKES ARGUMENT OF PHRASE LENGTH
@frequency = final_phrase_list(@pro_string,3,5)
end
end