A scheduler script to locally mimic Heroku's Scheduler.
You may find the script useful if
- you have a Rails app and deploy on Heroku
- during development, you need to locally run jobs at scheduled time intervals
- you use a Procfile-based app manager such as Foreman
- Copy scheduler.sh as
bin/scheduler
and make it executable - Copy scheduler.rake to
lib/tasks/
- Add
scheduler: ./bin/scheduler
to your Procfile.dev
Then run the app with
foreman start -f Procfile.dev
In addition you may do so with a script i.e bin/up
#!/bin/sh
foreman start -f Procfile.dev