Added and Configured gem Whenever

This commit is contained in:
Luiz F Picolo 2021-10-07 20:32:28 -04:00
parent 4d6c3af103
commit e294ceaaba
2 changed files with 12 additions and 1 deletions

View File

@ -12,4 +12,5 @@ gem 'chartkick'
gem 'rerun'
gem 'sqlite3'
gem 'rake'
gem 'puma'
gem 'puma'gem 'whenever', require: false

10
config/schedule.rb Normal file
View File

@ -0,0 +1,10 @@
set :environment, ENV["RACK_ENV"]
set :output, '/var/log/cron.log'
ENV.each_key do |key|
env key.to_sym, ENV[key]
end
every 5.minutes do
rake "rate:save"
end