stage-manager/Rakefile

26 lines
437 B
Ruby
Raw Normal View History

require 'bundler/setup'
require 'sequel'
require 'sqlite3'
namespace :db do
task :migrate do
%x{sequel -m 'db/migrations/' 'sqlite://data/stgm.db'}
end
task :import do
channel = ENV['channel']
puts %x{ruby scan.rb "#{channel}"}
end
end
namespace :server do
task :dev do
%x{ruby server.rb}
end
task :reload do
%x{rerun --ignore 'assets/*' --ignore 'public/*' --no-notify 'ruby server.rb'}
end
end