Created
June 11, 2015 08:55
-
-
Save ssig33/c430e8c5d5586f5b2d08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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