Created
March 13, 2013 02:32
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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