Sorry for what seems like a basic question, but I'm stumped.
I have a Rails app that relies in part on third party data that I download periodically (generally daily) and integrate into the app's database. The Ruby code that I use to get the third party data is in separate Ruby files, i.e., not integrated as code in any of my controllers. So, I run these programs when needed via rails runner program.rb
(probably not relevant, but all of them use the mechanize gem in gathering the third party data).
I want to try using Heroku's scheduler to make my data gathering more automated, and the recommendation for doing this is to set up rake tasks. Is there a rake task equivalent for rails runner program.rb
?
Thanks