Method: Puma::DSL#prune_bundler
- Defined in:
- lib/puma/dsl.rb
#prune_bundler(answer = true) ⇒ Object
Note:
This is incompatible with preload_app!
.
Note:
This is only supported for RubyGems 2.2+
This option is used to allow your app and its gems to be properly reloaded when not using preload.
When set, if Puma detects that it’s been invoked in the context of Bundler, it will cleanup the environment and re-run itself outside the Bundler environment, but directly using the files that Bundler has setup.
This means that Puma is now decoupled from your Bundler context and when each worker loads, it will be loading a new Bundler context and thus can float around as the release dictates.
644 645 646 |
# File 'lib/puma/dsl.rb', line 644 def prune_bundler(answer=true) @options[:prune_bundler] = answer end |