Skip to content

Commit

Permalink
Merge pull request #1064 from stephancom/patch-1
Browse files Browse the repository at this point in the history
incorrect namespace for rake task in docs
  • Loading branch information
stevecrozz committed Mar 14, 2016
2 parents dafba35 + da21fa6 commit 8c05e86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/deployment/capistrano.md
Expand Up @@ -75,7 +75,7 @@ rbenv=1 bundle exec cap production deploy

## Schedule recurring tasks
You may want to periodically clear resolved errors to free up space.
Schedule ```rake errbit:db:clear_resolved``` to run every day or so.
Schedule ```rake errbit:clear_resolved``` to run every day or so.


## Monit
Expand Down
4 changes: 2 additions & 2 deletions docs/deployment/heroku.md
Expand Up @@ -58,7 +58,7 @@ Option 1. With the heroku-scheduler add-on (replacement for cron):
heroku addons:create scheduler:standard

# Go open the dashboard to schedule the job. You should use
# 'rake errbit:db:clear_resolved' as the task command, and schedule it
# 'rake errbit:clear_resolved' as the task command, and schedule it
# at whatever frequency you like (once/day should work great).
heroku addons:create scheduler
```
Expand All @@ -73,5 +73,5 @@ heroku addons:create cron:daily
Option 3. Clear resolved errors manually:

```bash
heroku run rake errbit:db:clear_resolved
heroku run rake errbit:clear_resolved
```
2 changes: 1 addition & 1 deletion lib/tasks/heroku/cron.rake
@@ -1,4 +1,4 @@
desc "This task is called by the Heroku cron add-on"
task cron: :environment do
Rake::Task["errbit:db:clear_resolved"].invoke
Rake::Task["errbit:clear_resolved"].invoke
end

0 comments on commit 8c05e86

Please sign in to comment.