Permalink
Browse files

cron fix in readme

  • Loading branch information...
1 parent 119f897 commit d8bc6abc078bc56500172b59f70c5ab242c1ce37 Alexander Kravets committed Oct 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -23,7 +23,7 @@ Add backup task to ```/lib/tasks/cron.rake``` file:
require 'heroku_mongo_backup'
desc "This task is called by the Heroku cron add-on"
-task :cron => :production do
+task :cron => :environment do
if Time.now.hour == 0 # run at midnight
HerokuMongoBackup::Backup.new.backup
end

0 comments on commit d8bc6ab

Please sign in to comment.