mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Schedule test #2925
This commit is contained in:
parent
6ff10268f3
commit
379545424c
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,8 @@ path = Whenever.path.sub(%r{\/releases\/.*}, '/current')
|
|||
set :job_template, "/bin/bash -l -c '#{rbenv} :job'"
|
||||
job_type :runner, "cd #{path} && bin/rails r -e :environment \":task\" :output"
|
||||
|
||||
puts @environment
|
||||
|
||||
# cron output
|
||||
set :output, 'log/cron.log'
|
||||
|
||||
|
@ -52,3 +54,7 @@ end
|
|||
every 52.minutes do
|
||||
runner 'Domain.start_redemption_grace_period'
|
||||
end
|
||||
|
||||
every 10.minutes do
|
||||
runner 'Setting.reload_settings!'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue