2023-07-02 23:42:24 -04:00
|
|
|
require 'bundler/setup'
|
|
|
|
|
2023-07-05 18:04:31 -04:00
|
|
|
namespace :db do
|
|
|
|
task :migrate do
|
|
|
|
%x{sequel -m 'db/migrations/' 'sqlite://data/gamedata.db'}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-07-02 23:42:24 -04:00
|
|
|
namespace :server do
|
|
|
|
task :start do
|
2023-07-03 23:02:25 -04:00
|
|
|
ENV['APP_ENV'] = 'production'
|
2023-07-02 23:42:24 -04:00
|
|
|
system("puma")
|
|
|
|
end
|
|
|
|
|
2023-07-03 23:02:25 -04:00
|
|
|
task :dev do
|
|
|
|
system('rerun --quiet --dir="src/" puma')
|
|
|
|
end
|
|
|
|
end
|