Skip to content

Commit d8bc6ab

Browse files
author
Alexander Kravets
committed
cron fix in readme
1 parent 119f897 commit d8bc6ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Add backup task to ```/lib/tasks/cron.rake``` file:
2323
require 'heroku_mongo_backup'
2424
2525
desc "This task is called by the Heroku cron add-on"
26-
task :cron => :production do
26+
task :cron => :environment do
2727
if Time.now.hour == 0 # run at midnight
2828
HerokuMongoBackup::Backup.new.backup
2929
end

0 commit comments

Comments
 (0)