I’m trying to make a status page on my app. This page should show the status of Resque and Faye
Is there a way to get the status of these services inside my Rails App? I tried with http request/responses like this but all i got was timeouts.
the code that originated a timeout
def index
url = URI.parse('http://127.0.0.1:8080/faye.js')
req = Net::HTTP::Get.new(url.path)
res = Net::HTTP.start(url.host, url.port) {|http|
http.request(req)
}
@status_push = res.body
done with god. i can
'god status {service}'and handle the output. thank you all