Atualização Automatica dos numeros e correção de erro e falha de segurança

This commit is contained in:
2026-07-06 17:31:58 -03:00
parent 89b12fc91b
commit 96b7b03f57
16 changed files with 352 additions and 15 deletions

View File

@@ -6,7 +6,8 @@
set :output, "log/cron.log"
set :environment, ENV.fetch("RAILS_ENV", "production")
# A cada 1 hora — atualiza o valor estimado do dia
every 1.hour do
# A cada 30 min, das 08h às 18h — atualiza o valor estimado do dia.
# (Depois de alterar, rode: bundle exec whenever --update-crontab)
every "*/30 8-18 * * *" do
rake "historico:atualizar"
end