mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
Minor tweaks
This commit is contained in:
parent
479ed20142
commit
8060f41566
5
Gemfile
5
Gemfile
@ -15,10 +15,13 @@ gem 'sequel_pg'
|
||||
gem 'sinatra'
|
||||
|
||||
group :development do
|
||||
gem 'pry'
|
||||
gem 'shotgun'
|
||||
end
|
||||
|
||||
group :development, :test do
|
||||
gem 'pry'
|
||||
end
|
||||
|
||||
group :test do
|
||||
gem 'minitest'
|
||||
gem 'minitest-around'
|
||||
|
12
bin/schedule
12
bin/schedule
@ -1,12 +1,18 @@
|
||||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
system 'rake db:setup'
|
||||
`rake db:setup`
|
||||
|
||||
require 'rufus-scheduler'
|
||||
|
||||
scheduler = Rufus::Scheduler.new
|
||||
scheduler.cron '*/15 15,16,17 * * 1-5', timeout: '1m' do
|
||||
system 'rake rates:current'
|
||||
|
||||
trap 'INT' do
|
||||
scheduler.shutdown
|
||||
end
|
||||
|
||||
scheduler.cron '*/15 15,16,17 * * 1-5' do
|
||||
`rake rates:current`
|
||||
end
|
||||
|
||||
scheduler.join
|
||||
|
Loading…
Reference in New Issue
Block a user