Commit 2c00d88ededc717b6c264f7b70862c1194e24c3c

Authored by Nathan Broadbent
1 parent 7d672ab0
Exists in master and in 1 other branch production

Added 'rake cron' task that calls errbit:db:clear_resolved by default. This is f…

…or heroku users using the free database. [ci skip]
Showing 2 changed files with 14 additions and 1 deletions   Show diff stats
@@ -98,7 +98,15 @@ for you. Checkout [Airbrake](http://airbrakeapp.com) from the guys over at @@ -98,7 +98,15 @@ for you. Checkout [Airbrake](http://airbrakeapp.com) from the guys over at
98 98
99 heroku run rake db:seed 99 heroku run rake db:seed
100 100
101 - 4. Enjoy! 101 + 4. If you are using a free database on Heroku, you may want to periodically clear resolved errors to free up space.
  102 +
  103 + # Install the heroku cron addon, to clear resolved errors daily:
  104 + heroku addons:add cron:daily
  105 +
  106 + # Or, clear resolved errors manually:
  107 + heroku rake errbit:db:clear_resolved
  108 +
  109 + 5. Enjoy!
102 110
103 111
104 **Configuring LDAP authentication:** 112 **Configuring LDAP authentication:**
lib/tasks/heroku/cron.rake 0 → 100644
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
  1 +desc "This task is called by the Heroku cron add-on"
  2 +task :cron => :environment do
  3 + Rake::Task["errbit:db:clear_resolved"].invoke
  4 +end
  5 +