I installed my schedule.rb file as follows.
set :cron_log, "/log/cron_log.log"
if Rails.env.development?
every 1.minute do
runner "SomeModel.move_values"
runner "SomeOtherModel.dispense"
end
end
I also make it work in development mode whenever --update-crontab trunk --set environment = development
But my model methods (class methods) are never called. Is there a way to check if it is configured correctly. when I just use the update, it resets the settings to use the working environment.
source
share