Added and Configured gem Whenever
This commit is contained in:
parent
4d6c3af103
commit
e294ceaaba
3
Gemfile
3
Gemfile
@ -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
10
config/schedule.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user