diff --git a/lib/puma/cli.rb b/lib/puma/cli.rb index ef8ba18a..2d9b8811 100644 --- a/lib/puma/cli.rb +++ b/lib/puma/cli.rb @@ -473,8 +473,13 @@ module Puma if puma_lib_dir log "* Pruning Bundler environment" + + home = ENV['GEM_HOME'] + Bundler.with_clean_env do + ENV['GEM_HOME'] = home + wild = File.expand_path(File.join(puma_lib_dir, "../bin/puma-wild")) wild_loadpath = dirs.join(":")