mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-01 15:15:06 +02:00
Enable QUIET mode and keep standard output
This commit is contained in:
parent
fab5732b32
commit
eff7910078
|
@ -5,7 +5,8 @@
|
||||||
|
|
||||||
set :output, standard: "log/cron.log"
|
set :output, standard: "log/cron.log"
|
||||||
|
|
||||||
#
|
job_type :rake_with_stdout, "cd :path && :environment_variable=:environment bundle exec rake :task"
|
||||||
|
|
||||||
# every 2.hours do
|
# every 2.hours do
|
||||||
# command "/usr/bin/some_great_command"
|
# command "/usr/bin/some_great_command"
|
||||||
# runner "MyModel.some_method"
|
# runner "MyModel.some_method"
|
||||||
|
@ -19,7 +20,7 @@ set :output, standard: "log/cron.log"
|
||||||
# Learn more: http://github.com/javan/whenever
|
# Learn more: http://github.com/javan/whenever
|
||||||
|
|
||||||
every 1.day, at: '1:00 am', roles: [:app] do
|
every 1.day, at: '1:00 am', roles: [:app] do
|
||||||
rake "checks:sync_dates:all"
|
rake_with_stdout "checks:sync_dates:all QUIET=1"
|
||||||
end
|
end
|
||||||
|
|
||||||
every 1.day, at: '8:30 am', roles: [:app] do
|
every 1.day, at: '8:30 am', roles: [:app] do
|
||||||
|
|
Loading…
Reference in a new issue