Created
November 2, 2017 09:43
-
-
Save 1c7/a7902851c12f8d270372c2c9c9b9ff73 to your computer and use it in GitHub Desktop.
this one work for me! 2017!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment