19 lines
278 B
Ruby
19 lines
278 B
Ruby
|
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
|