Initial sinatra project structure
This commit is contained in:
18
Rakefile
Normal file
18
Rakefile
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
Reference in New Issue
Block a user