Skip to content

Instantly share code, notes, and snippets.

@danielpuglisi
Created August 27, 2012 17:52
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/3490814 to your computer and use it in GitHub Desktop.
Save danielpuglisi/3490814 to your computer and use it in GitHub Desktop.
Heroku keep alive
#!/bin/bash
apps=( app1-demo app1-staging app2-draft )
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