Skip to content

Instantly share code, notes, and snippets.

@danielpuglisi
Last active October 9, 2015 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielpuglisi/3490792 to your computer and use it in GitHub Desktop.
Save danielpuglisi/3490792 to your computer and use it in GitHub Desktop.
Heroku keep alive
*/5 * * * * root /etc/cron.custom/keep-alive.sh
#!/bin/bash
apps=( froburg-demo )
for app in ${apps[@]}; do
host="http://$app.herokuapp.com"
curl --silent --output /var/log/keep-alive.txt -L $host
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment