Script that checks it server X is up or not. Suitable for Heroku hosting.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.ruby-gemset
.ruby-version
Gemfile
Gemfile.lock
Procfile
README.md
app.rb

README.md

dontdieonme

"Don't die on me is" simple Ruby app that makes request to website every 2 minues.

Make sure you add following to environment variables:

  • URL_TO_GET
  • ROLLBAR_ACCESS_TOKEN
  • ROLLBAR_ENDPOINT

People responsible

Configuration

On Heroku set 2 variables one is for enviroment and one is url that has to be requested every 2 minutes.

heroku config:set ENV=production URL_TO_GET=http://some-url-to-get.com/

Also scale Heroku to 1 worker with the following command:

heroku ps:scale app=1