Whenever test #2925

This commit is contained in:
Martin Lensment 2015-09-17 17:01:07 +03:00
parent 379545424c
commit 2a81641130

View file

@ -9,11 +9,14 @@ path = Whenever.path.sub(%r{\/releases\/.*}, '/current')
set :job_template, "/bin/bash -l -c '#{rbenv} :job'" set :job_template, "/bin/bash -l -c '#{rbenv} :job'"
job_type :runner, "cd #{path} && bin/rails r -e :environment \":task\" :output" job_type :runner, "cd #{path} && bin/rails r -e :environment \":task\" :output"
puts @environment
# cron output # cron output
set :output, 'log/cron.log' set :output, 'log/cron.log'
puts 'domain'
puts @domain
puts 'env'
puts @environment
every 10.minutes do every 10.minutes do
runner 'ZonefileSetting.generate_zonefiles' runner 'ZonefileSetting.generate_zonefiles'
end end