26 lines
479 B
Ruby
26 lines
479 B
Ruby
require 'bundler/setup'
|
|
|
|
task :setup do
|
|
# Set bundle to install gems to local vendor path
|
|
system("bundle config set --local path 'vendor/bundle'")
|
|
# Install gems
|
|
system("bundle install")
|
|
end
|
|
|
|
namespace :db do
|
|
task :migrate do
|
|
%x{sequel -m 'db/migrations/' 'sqlite://data/gamedata.db'}
|
|
end
|
|
end
|
|
|
|
namespace :server do
|
|
task :start do
|
|
ENV['APP_ENV'] = 'production'
|
|
system("puma")
|
|
end
|
|
|
|
task :dev do
|
|
system('rerun --quiet --dir="src/" puma')
|
|
end
|
|
end
|