Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup Heroku Scheduler without Rails?

Reading the documentation here, https://devcenter.heroku.com/articles/scheduler, I see how to schedule tasks with rails. But I was wondering how to schedule tasks with regular ruby?

What do I have to put in the task field to have my ruby script run?

like image 296
Takkun Avatar asked Nov 05 '22 01:11

Takkun


1 Answers

You should be able to add a Rakefile to your regular ruby app, and run rake task_name via the scheduler.

like image 79
nthj Avatar answered Nov 09 '22 11:11

nthj