mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
17 lines
530 B
Ruby
17 lines
530 B
Ruby
# Use this file to easily define all of your cron jobs.
|
|
#
|
|
# It's helpful, but not entirely necessary to understand cron before proceeding.
|
|
# http://en.wikipedia.org/wiki/Cron
|
|
|
|
# rbenv support
|
|
set :job_template,
|
|
"/bin/bash -l -c 'export PATH=\"$HOME/.rbenv/bin:$PATH\";eval\"$(rbenv init -)\"; :job'"
|
|
set :path, Rails.root.join('../../current'
|
|
job_type :runner, ":path/bin/rails r -e :environment ':task' :output"
|
|
|
|
# cron output
|
|
set :output, 'log/cron.log'
|
|
|
|
every 10.minutes do
|
|
runner 'ZonefileSetting.generate_zonefiles'
|
|
end
|