Commit da21fa61c97029ec228ee574f29c2de86def4e25

Authored by stephan.com
1 parent 1a21bd35
Exists in master

correct incorrect errbit:db namespace in docs and cron task

docs/deployment/capistrano.md
@@ -75,7 +75,7 @@ rbenv=1 bundle exec cap production deploy @@ -75,7 +75,7 @@ rbenv=1 bundle exec cap production deploy
75 75
76 ## Schedule recurring tasks 76 ## Schedule recurring tasks
77 You may want to periodically clear resolved errors to free up space. 77 You may want to periodically clear resolved errors to free up space.
78 -Schedule ```rake errbit:db:clear_resolved``` to run every day or so. 78 +Schedule ```rake errbit:clear_resolved``` to run every day or so.
79 79
80 80
81 ## Monit 81 ## Monit
docs/deployment/heroku.md
@@ -58,7 +58,7 @@ Option 1. With the heroku-scheduler add-on (replacement for cron): @@ -58,7 +58,7 @@ Option 1. With the heroku-scheduler add-on (replacement for cron):
58 heroku addons:create scheduler:standard 58 heroku addons:create scheduler:standard
59 59
60 # Go open the dashboard to schedule the job. You should use 60 # Go open the dashboard to schedule the job. You should use
61 -# 'rake errbit:db:clear_resolved' as the task command, and schedule it 61 +# 'rake errbit:clear_resolved' as the task command, and schedule it
62 # at whatever frequency you like (once/day should work great). 62 # at whatever frequency you like (once/day should work great).
63 heroku addons:create scheduler 63 heroku addons:create scheduler
64 ``` 64 ```
lib/tasks/heroku/cron.rake
1 desc "This task is called by the Heroku cron add-on" 1 desc "This task is called by the Heroku cron add-on"
2 task cron: :environment do 2 task cron: :environment do
3 - Rake::Task["errbit:db:clear_resolved"].invoke 3 + Rake::Task["errbit:clear_resolved"].invoke
4 end 4 end