2023-03-02 13:24:24 -05:00
|
|
|
require 'bundler/setup'
|
|
|
|
|
|
|
|
require 'sequel'
|
|
|
|
require 'sqlite3'
|
|
|
|
|
|
|
|
namespace :db do
|
|
|
|
task :migrate do
|
|
|
|
%x{sequel -m 'db/migrations/' 'sqlite://data/stgm.db'}
|
|
|
|
end
|
2023-03-05 10:02:25 -05:00
|
|
|
|
|
|
|
task :import do
|
|
|
|
channel = ENV['channel']
|
|
|
|
puts %x{ruby scan.rb "#{channel}"}
|
|
|
|
end
|
2023-03-02 13:24:24 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
namespace :server do
|
2023-03-09 23:22:18 -05:00
|
|
|
task :start do
|
|
|
|
system("bundle exec puma -C config/puma.rb")
|
|
|
|
end
|
|
|
|
|
|
|
|
task :reload do
|
2023-03-09 15:48:33 -05:00
|
|
|
%x{guard}
|
2023-03-02 13:24:24 -05:00
|
|
|
end
|
|
|
|
end
|