How to Keep Heroku Dyno from Idling
By default, Heroku dynos will fall asleep after a certain amount of time if there is no traffic. This is a problem for low traffic sites, since it takes too long for the dyno to boot up and serve the initial web request. There are 2 ways I normally go about keeping this from happening.
With the New Relic add-on, you can go to Settings > Availability monitoring and set your web URL. This will continuously ping the site and keep the dyno awake.
If you don’t want to use New Relic, there is a gem called Dynopoker which does the same thing.