pingu
Pingu is a tiny little Heroku app pinger that prevents your dynos from falling asleep.
Kinda like that horrible guard guy on Reykjavik airport.
Usage (recommended)
-
Clone pingu. Run
npm install
. -
Create a pingu user.
-
Save your Heroku API token somewhere in pingu user's
${HOME}
and make sure you limit access (only make it readable by pingu)! You can source it in your pingu user~/.bashrc
file. -
Create a Cron job that runs pingu and pass it the Heroku token. Something like:
*/30 * * * * HEROKU_API_KEY=${HEROKU_API_KEY} ${HOME}/pingu/node_modules/.bin/coffee ${HOME}/pingu
-
PROFIT!