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
|
2023-03-14 20:49:42 -04:00
|
|
|
task :start do
|
|
|
|
system("puma -C config/puma.rb")
|
2022-12-08 11:00:19 -05:00
|
|
|
end
|
|
|
|
|
2023-03-14 20:49:42 -04:00
|
|
|
task :dev do
|
|
|
|
%x{guard}
|
2022-12-08 11:00:19 -05:00
|
|
|
end
|
|
|
|
end
|