Skip to content

Instantly share code, notes, and snippets.

@marcomontes
Created March 13, 2013 02:32
Show Gist options
  • Save marcomontes/5148939 to your computer and use it in GitHub Desktop.
Save marcomontes/5148939 to your computer and use it in GitHub Desktop.
Tarea rake que mantiene activo un sitio en heroku, impide que en entre en inactividad
desc "This task is called by the Heroku cron add-on"
task :call_page => :environment do
uri = URI.parse('http://myapp.herokuapp.com/')
Net::HTTP.get(uri)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment