mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
When is Bundler loaded by puma-wild?
This commit is contained in:
parent
2ed158ecac
commit
359cb697db
3 changed files with 8 additions and 1 deletions
|
@ -28,4 +28,5 @@ require 'puma/cli'
|
|||
|
||||
cli = Puma::CLI.new ARGV
|
||||
|
||||
puts "puma-wild defined?(Bundler) = #{defined?(Bundler).inspect}"
|
||||
cli.run
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue