Skip to content

Commit

Permalink
Starting sinatra with Puma
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitsing committed Mar 5, 2018
1 parent aebbf4c commit 4305488
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ source 'https://rubygems.org'
gem 'sinatra'
gem 'octokit'
gem 'eldritch'
gem 'puma'
4 changes: 3 additions & 1 deletion lib/pairing_matrix/server/server.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'sinatra/base'
require 'puma'
require 'json'
require_relative '../../pairing_matrix'
require_relative '../config/config_reader'
Expand All @@ -9,6 +10,7 @@
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
Expand Down Expand Up @@ -36,4 +38,4 @@ class Server < Sinatra::Base
File.read(File.join(File.dirname(__FILE__), 'public/index.html'))
end
end
end
end
2 changes: 1 addition & 1 deletion lib/pairing_matrix/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module PairingMatrix
VERSION = '2.1.1'
VERSION = '2.2'
end
1 change: 1 addition & 0 deletions pairing_matrix.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
spec.add_dependency 'sinatra', '~> 1.4.8'
spec.add_dependency 'octokit', '~> 4.6.2'
spec.add_dependency 'eldritch', '~> 1.1.2'
spec.add_dependency 'puma', '~> 3.11.2'
end

0 comments on commit 4305488

Please sign in to comment.