[I/O] Vitaliy Yanchuk

Make free heroku app to not fell to sleep

19 Mar 2014

Heroku is great service to serve apps. It can even be used free but unfortinatelly your apps go to sleep if they are not used for more than 60 minutes.

You can say its fine, as apps are automatically turn on request, but sometimes you need it to be always on. Heroku provides with solution with payed plan but its quite a lot if you don't use it for any business.

I found solution for this using Heroku Sheduller addon, and it seems to fully legit now to be used.
So you need to activate this module on your app:

heroku addons:add scheduler:standard

Or add it from dashboard.

Then in config add a command to be run twice an hour:

curl -XHEAD http://your-app-name.herokuapp.com/
comments powered by Disqus