diff --git a/CHANGELOG.md b/CHANGELOG.md index de687af0..bf93cfab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * Fix binstubs not being replaced when their quoting style was changed (#534) * Preserve comments right after the shebang line which might include magic comments such as `frozen_string_literal: true' +* Fix binstub failures when Bundler's `BUNDLE_APP_CONFIG` environment variable is present (#545) ## 2.0.2 diff --git a/lib/spring/application_manager.rb b/lib/spring/application_manager.rb index ca4671fb..953f2685 100644 --- a/lib/spring/application_manager.rb +++ b/lib/spring/application_manager.rb @@ -92,7 +92,7 @@ def stop def start_child(preload = false) @child, child_socket = UNIXSocket.pair - Bundler.with_clean_env do + Bundler.with_original_env do @pid = Process.spawn( { "RAILS_ENV" => app_env,