1c7
11/2/2017 - 9:43 AM

this one work for me! 2017!

this one work for me! 2017!

set :path, "/var/www/yuzhu/current"
set :bundle_path, "/usr/local/bin/bundle"
set :rails_path, "/usr/local/bin/rails"
set :output, {:error => "/var/www/random_log/cron_error_log.log", :standard => "/var/www/random_log/cron_log.log"}

job_type :my_rails, 'cd :path && :bundle_path exec :rails_path runner -e production :task :output'

every 3.hours do
  my_rails "Location.cal_score"
  my_rails "Location.cal_price"
end