These are the logs when I see the error page for my Rails app. Any advice on how to fix this?
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
Here is my Review controller. It refers to the fulltext line. I'm using the Sunspot gem that seems to work in the development environment.
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