21 lines
304 B
Ruby
21 lines
304 B
Ruby
|
require 'bundler/setup'
|
||
|
|
||
|
require 'sequel'
|
||
|
require 'sqlite3'
|
||
|
|
||
|
namespace :db do
|
||
|
task :migrate do
|
||
|
%x{sequel -m 'db/migrations/' 'sqlite://data/stgm.db'}
|
||
|
end
|
||
|
end
|
||
|
|
||
|
namespace :server do
|
||
|
task :dev do
|
||
|
%x{ruby server.rb}
|
||
|
end
|
||
|
|
||
|
task :reload do
|
||
|
%x{rerun --no-notify 'ruby server.rb'}
|
||
|
end
|
||
|
end
|