2023-03-02 13:24:24 -05:00
|
|
|
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
|
2023-03-03 10:09:15 -05:00
|
|
|
%x{rerun --ignore 'assets/*' --ignore 'public/*' --no-notify 'ruby server.rb'}
|
2023-03-02 13:24:24 -05:00
|
|
|
end
|
|
|
|
end
|