Permalink
Browse files

heroku daily cron job

  • Loading branch information...
1 parent 61c1642 commit 482098d2655100487a567fa3654d7398abfa6f35 @titanous committed Apr 21, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 Rakefile
View
@@ -16,3 +16,12 @@ namespace :scrape do
geocode
end
end
+
+task :cron do
+ if Date.today.wday == 0 # Sunday
+ Rake::Task['scrape:full'].execute
+ else
+ Rake::Task['scrape:incr'].execute
+ end
+ Rake::Task['scrape:geocode'].execute
+end

0 comments on commit 482098d

Please sign in to comment.