frankfurter/bin/schedule
Hakan Ensari e28755f76c Move migration to top of unicorn config file
There's probably a cleaner way of doing this, but it should do for now.

Fixes #4
2019-04-27 14:57:27 +01:00

13 lines
197 B
Ruby
Executable File

#!/usr/bin/env ruby
# frozen_string_literal: true
require 'rufus-scheduler'
scheduler = Rufus::Scheduler.new
scheduler.cron '*/15 15,16,17 * * 1-5' do
`rake rates:current`
end
scheduler.join