2022-12-09 21:19:53 -05:00
|
|
|
require 'bundler/setup'
|
|
|
|
|
2022-12-08 11:00:19 -05:00
|
|
|
require 'sequel'
|
|
|
|
require 'sqlite3'
|
|
|
|
|
|
|
|
namespace :db do
|
|
|
|
task :migrate do
|
|
|
|
%x{sequel -m 'db/migrations/' 'sqlite://data/raven.db'}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
namespace :server do
|
|
|
|
task :dev do
|
|
|
|
%x{ruby raven.rb}
|
|
|
|
end
|
|
|
|
|
|
|
|
task :reload do
|
|
|
|
%x{rerun --no-notify 'ruby raven.rb'}
|
|
|
|
end
|
|
|
|
end
|