Added Rakefile to project for handling common tasks
This commit is contained in:
parent
12045c684e
commit
f1aca6e318
18
Rakefile
Normal file
18
Rakefile
Normal file
@ -0,0 +1,18 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user