19 lines
281 B
Ruby
19 lines
281 B
Ruby
require 'bundler/setup'
|
|
|
|
namespace :server do
|
|
task :start do
|
|
ENV['APP_ENV'] = 'production'
|
|
system("puma")
|
|
end
|
|
|
|
task :dev do
|
|
system('rerun --no-notify --exit --dir="src/" puma')
|
|
end
|
|
end
|
|
|
|
namespace :test do
|
|
task :rubocop do
|
|
system("rubocop src/")
|
|
end
|
|
end
|