Reputation: 6361
Using a Sinatra Ruby web server, I'm having trouble figuring out how I can get certain fields in my postgres server to update every X amount of time.
Anyone have any suggestions for a way to change data every X number of minutes while still handling normal http requests.
Upvotes: 0
Views: 76
Reputation: 1836
Use the Heroku Scheduler addon? It allows you to schedule a rake task every 10 minutes.
https://devcenter.heroku.com/articles/scheduler
Upvotes: 2