Skip to content

Commit

Permalink
Use Bundler.original_env instead of raw environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlarose committed Mar 7, 2020
1 parent d9d2555 commit d5e814e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/puma/launcher.rb
Expand Up @@ -298,8 +298,7 @@ def prune_bundler

log '* Pruning Bundler environment'
home = ENV['GEM_HOME']
bundle_gemfile = ENV['BUNDLER_ORIG_BUNDLE_GEMFILE']
bundle_gemfile = nil if bundle_gemfile == 'BUNDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL'
bundle_gemfile = Bundler.original_env['BUNDLE_GEMFILE']
with_unbundled_env do
ENV['GEM_HOME'] = home
ENV['BUNDLE_GEMFILE'] = bundle_gemfile
Expand Down

0 comments on commit d5e814e

Please sign in to comment.