Commit 0ccb9e3edf2c0bef8088c6340702c48791706ad6
1 parent
fc7d6a61
Exists in
master
and in
1 other branch
Modify docs to point to heroku scheduler plugin, since cron was deprecated.
Showing
1 changed file
with
19 additions
and
1 deletions
Show diff stats
README.md
... | ... | @@ -163,11 +163,29 @@ heroku run rake db:seed |
163 | 163 | |
164 | 164 | * If you are using a free database on Heroku, you may want to periodically clear resolved errors to free up space. |
165 | 165 | |
166 | + * With the heroku-scheduler add-on (replacement for cron): | |
167 | + | |
168 | +```bash | |
169 | +# Install the heroku scheduler add-on | |
170 | +heroku addons:add scheduler:standard | |
171 | + | |
172 | +# Go open the dashboard to schedule the job. You should use | |
173 | +# 'rake errbit:db:clear_resolved' as the task command, and schedule it | |
174 | +# at whatever frequency you like (once/day should work great). | |
175 | +heroku addons:open scheduler | |
176 | + | |
177 | +``` | |
178 | + | |
179 | + * With the cron add-on: | |
180 | + | |
166 | 181 | ```bash |
167 | 182 | # Install the heroku cron addon, to clear resolved errors daily: |
168 | 183 | heroku addons:add cron:daily |
184 | +``` | |
169 | 185 | |
170 | -# Or, clear resolved errors manually: | |
186 | + * Or clear resolved errors manually: | |
187 | + | |
188 | +```bash | |
171 | 189 | heroku rake errbit:db:clear_resolved |
172 | 190 | ``` |
173 | 191 | ... | ... |