Skip to content

Cowa/PleaseNoSleep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please, no sleep.

Prevent your heroku apps from sleeping... by yourself!

Why?

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 :)

How to use?

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 :)

Powered by

Scala, Akka and Spray.

About

😴 Prevent Heroku app from sleeping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages