Skip to content

Instantly share code, notes, and snippets.

@ssig33
Created June 11, 2015 08:55
Show Gist options
  • Save ssig33/c430e8c5d5586f5b2d08 to your computer and use it in GitHub Desktop.
Save ssig33/c430e8c5d5586f5b2d08 to your computer and use it in GitHub Desktop.
require 'thin'
require 'sinatra'
require 'open-uri'
configure do
set :server, :thin
end
get '/' do
'index'
end
Thread.start do
loop do
open("http://aaaaa.herokuapp.com").read rescue nil
open("http://bbbbb.herokuapp.com").read rescue nil
sleep 60
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment