Skip to content

Commit

Permalink
fix environment in cron task example
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Kravets committed Oct 6, 2011
1 parent 519384f commit 119f897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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 => :environment do
task :cron => :production do
if Time.now.hour == 0 # run at midnight
HerokuMongoBackup::Backup.new.backup
end
Expand Down

0 comments on commit 119f897

Please sign in to comment.