/ping-func

Periodically ping a list of URLs

Primary LanguageRubyMIT LicenseMIT

PingFunc

Periodically ping a list of URLs. A fun exploration of Ruby's malleability.

EM plumbing is inspired by stevegraham/uptime. The rest is inspired by jashkenas/underscore and readevalprintlove/ulithp.

Setup

$ git clone https://github.com/invisiblefunnel/ping-func.git
$ cd ping-func/
$ bundle
$ cp sample.env .env
$ gem install foreman
$ foreman start

Running on Heroku

$ heroku create <app name>
$ heroku config:set PING_INTERVAL=3600 PING_URLS='http://google.com,http://example.com'
$ git push heroku master