Commit 5fc4c779 by Thanh Hung Pham

Set schedule run 12:00 pm

parent ebe9fd7e
...@@ -18,6 +18,11 @@ ...@@ -18,6 +18,11 @@
# end # end
# Learn more: http://github.com/javan/whenever # 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 every 1.day, at: '12:00 pm' do
runner 'MyModel.task_to_run' rake 'crawler:load'
rake 'import:csv'
end 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