lib/pairing_matrix/server/server.rb in pairing_matrix-2.1.1 vs lib/pairing_matrix/server/server.rb in pairing_matrix-2.2
- old
+ new
@@ -1,16 +1,18 @@
require 'sinatra/base'
+require 'puma'
require 'json'
require_relative '../../pairing_matrix'
require_relative '../config/config_reader'
require_relative '../commit_reader'
require_relative '../commit_cache'
require_relative '../github_commit_reader'
module PairingMatrix
class Server < Sinatra::Base
set :bind, '0.0.0.0'
+ set :server, :puma
logging_file = File.new('app.log', 'a+')
logging_file.sync = true
before {
env["rack.errors"] = logging_file
@@ -34,6 +36,6 @@
get '/matrix' do
File.read(File.join(File.dirname(__FILE__), 'public/index.html'))
end
end
-end
\ No newline at end of file
+end