Skip to content

Commit

Permalink
Detect the presence of Puma a different way (#430)
Browse files Browse the repository at this point in the history
* Detect the presence of Puma a different way

* Update website gems
  • Loading branch information
jaredcwhite authored Oct 26, 2021
1 parent 952061d commit 990b68a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions bridgetown-core/lib/bridgetown-core/commands/start.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ def start # rubocop:todo Metrics/PerceivedComplexity
Bridgetown::Commands::Build.print_startup_message
sleep 0.25

unless Bundler.definition.specs.find { |s| s.name == "puma" }
raise "** No Rack-compatible server found **"
begin
require("puma/detect")
rescue LoadError
raise "** Puma server gem not found. Check your Gemfile and Bundler env? **"
end

options = Thor::CoreExt::HashWithIndifferentAccess.new(self.options)
Expand Down
4 changes: 2 additions & 2 deletions bridgetown-website/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ gem "bridgetown-core", path: "../bridgetown-core"
gem "bridgetown-paginate", path: "../bridgetown-paginate"

group :bridgetown_plugins do
gem "bridgetown-feed", "2.0.1", github: "bridgetownrb/bridgetown-feed"
gem "bridgetown-quick-search", "1.1.2", github: "bridgetownrb/bridgetown-quick-search"
gem "bridgetown-feed", "~> 2.1"
gem "bridgetown-quick-search", "~> 1.1"
gem "bridgetown-seo-tag", "~> 5.0"
gem "bridgetown-svg-inliner", "~> 1.0"
end
Expand Down

0 comments on commit 990b68a

Please sign in to comment.