The many good solutions to this problem that I eventually completed with integration are as follows:
- Moved my rake code to the appropriate models.
- Added controller / routing code to call model methods from the browser.
- Configured cronjob using
whenevergem to runcommand 'curl mywebsite.com/model#method'
I tried giving delayed_job, but I didn't like the idea of starting another Rails instance. My methods are not too intensive for the server, and the solution above allows me to use the already running Rails environment.
Marco source
share