Prevent your heroku apps from sleeping... by yourself!
Don't rely on 3rd party services to keep awake your heroku apps.
Manage it by yourself, it's a piece of cake and free :)
Clone this repo :
git clone git@github.com:Cowa/PleaseNoSleep.git
Obviously, you should have the heroku toolbelt.
Inside this repo, create a new heroku app :
heroku create
Set heroku app's URL you want to keep awake :
heroku config:set URL_TO_PING=http://foo.com,http://bar.com
URL must be separated with comma ,
Important, you also have to add your PleaseNoSleep app URL to URL_TO_PING
, so it will keep itself awake.
For example, at the CatFactory team, we have this :
URL_TO_PING=http://catfactory-api.herokuapp.com,http://catfactory.herokuapp.com,http://serene-dusk-6746.herokuapp.com
Where http://serene-dusk-6746.herokuapp.com
is our PleaseNoSleep app.
And finally, deploy it :
git push heroku master
Hooray! Your heroku apps will no longer fall asleep :)
Scala, Akka and Spray.