-
Notifications
You must be signed in to change notification settings - Fork 70
Fix use Bundler.with_clean_env #21
base: master
Are you sure you want to change the base?
Conversation
As a reference about |
Has this been tested? I ask because there are some gems in the Gemfile that are need for Strano to run these "clean" commands. |
Are you referring to those ? # While these are not needed by Strano itself, without them installed, any project
# that requires them will die when Strano tries to run a cap task. By using
# :require => nil, these don't get required/loaded into Strano, but are installed
# for projects to use if needed.
gem 'delayed_job', :require => nil
gem 'whenever', :require => nil
gem 'airbrake', :require => nil
gem 'newrelic_rpm', :require => nil I think this should still work as before but I'll give it a try (I'm note sure about the The problem I had was on a project doing a local clone of the git repo, The run_locally "cd .rsync_cache; RAILS_ENV=#{rails_env} bundle exec rake #{asset_env} assets:precompile" and will fail because of some ENV[BUNDLE_*] variable being set while running bundled sidekiq. If I don't find a way to fix this around |
|
Oh I finally understood what you meant by "Has this been tested?" 😄 It provides a clean environment (without any bundle related variables) for the block by replacing it to what it was before loading bundler (and restoring it after). (https://github.com/carlhuda/bundler/blob/master/lib/bundler.rb#L195). Yet I think this will fail for the I will rewrite this patch to just wrap the |
Project using Bundler may conflicts with strano itself
Projects using Bundler may conflict with strano itself