diff --git a/bin/puma-wild b/bin/puma-wild index b3ba0152..9bbd1e35 100644 --- a/bin/puma-wild +++ b/bin/puma-wild @@ -28,4 +28,5 @@ require 'puma/cli' cli = Puma::CLI.new ARGV +puts "puma-wild defined?(Bundler) = #{defined?(Bundler).inspect}" cli.run diff --git a/lib/puma/configuration.rb b/lib/puma/configuration.rb index e8e546d6..f587c0c8 100644 --- a/lib/puma/configuration.rb +++ b/lib/puma/configuration.rb @@ -299,8 +299,12 @@ module Puma # a Gemfile if ENV.key? 'PUMA_BUNDLER_PRUNED' begin + puts '>>>> loading Bundler...' require 'bundler/setup' rescue LoadError + puts 'failed' + else + puts 'success' end end diff --git a/lib/puma/launcher.rb b/lib/puma/launcher.rb index a45757f9..98025d2b 100644 --- a/lib/puma/launcher.rb +++ b/lib/puma/launcher.rb @@ -286,7 +286,9 @@ module Puma end def prune_bundler - return if ENV.key?('PUMA_BUNDLER_PRUNED') + puts '>>>> prune_bundler starting...' + puts "prune_bundler defined?(Bundler) = #{defined?(Bundler).inspect}" + #return if ENV.key?('PUMA_BUNDLER_PRUNED') return unless defined?(Bundler) require_rubygems_min_version!(Gem::Version.new("2.2"), "prune_bundler") unless puma_wild_location