Commit 42dc461e by Thanh Hung Pham

Set schedule run 12:00 pm

parent c33e9213
......@@ -18,6 +18,11 @@
# end
# Learn more: http://github.com/javan/whenever
env :PATH, ENV['PATH']
set :environment, 'development'
set :output, { error: 'log/cron_error_log.log', standard: 'log/cron_log.log' }
every 1.day, at: '12:00 pm' do
runner 'MyModel.task_to_run'
rake 'crawler:load'
rake 'import:csv'
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment