I am using the "whenever" gem which generated a cron line for me.
0 5 * * * /bin/bash -l -c 'cd /projects/my_rails && rails runner -e development "Indexing::LikeIndexer.index_deltas"'
(The cron above is just for testing and won't be running this frequently in production =))
This and other crons (like thinking_sphinx's) require loading the whole rails environment in order to execute the code. (Rails cron with whenever, setting the environment)
Is there any gem that runs my rails environment and allows it to execute code without having to reload the whole environment?
I attempted to solve the problem with spin but it seems that spin doesn't recognize my models when I pass a file to it.