Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6bc4dac4ad
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (15 sloc) 0.42 kb
#!/usr/bin/env ruby
require_relative "../../lib/ferret"
uses_app path: "#{ENV["FERRET_DIR"]}/app/basic_http"
run_interval 10 do
bash(name: :consider_restart, timeout: 50, stdin: <<-'EOSH')
heroku restart --app $SERVICE_APP_NAME
EOSH
end
run_every_time do
bash(name: :poll, timeout: 3900, stdin: <<-'EOSH')
set -x
curl --fail http://${SERVICE_APP_NAME}.herokuapp.com -v
EOSH
end
run forever: true
Jump to Line
Something went wrong with that request. Please try again.