guru101/morevue — Issue #4: Cron task not working
Author: guru101
Created: 2012-03-03 15:20:52+00:00
State: open

I am trying to run 2 cron tasks, one after the other.

First of all is to wipe the database: rake db:schema:load

I usually do this within the terminal, does the work and resets the schema as well.

Secondly, i run a command inside rails console: d = Importer.get_film_links

Which get_film_links from the importer, which is essentially everything including: Movies, cinemas, showtimes.

Can be done through: config/schedule.rb

P.S. I am using Whenever by Javan https://github.com/javan/whenever