Skip to content

Commit

Permalink
Added docs for scheduling script on heroku to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JangoSteve committed Jul 8, 2012
1 parent 8e982e5 commit 7a81a23
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,20 @@ To test the script on heroku:
```
heroku run get_counts
```

Now, let's setup Heroku's "scheduler" addon (previously called the "cron" addon):

```
heroku addons:add scheduler:standard
```

And set it up to run however often we'd like:

```
heroku addons:open scheduler
```

The above will open the Heroku scheduler dashboard in your browser,
where you can click "Add job...", type in `get_counts`, and select your
frequency (probably daily, or at most hourly, if possible, to minimize
impact on venders' available API resources).

0 comments on commit 7a81a23

Please sign in to comment.