You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated _ctl scripts don't require 'bundler/setup' and so don't see gem files that bundler has downloaded that are not part of the main gem install.
I ran into this after setting up my Gemfile to use the git head version of daemons-rails (which rvm and bundler installed to /usr/local/rvm/gems/ruby-head@rails4/bundler/gems/daemons-rails-0bf7123eb5e6) rubygems doesn't pick that up if you don't include bundler.
The simple fix was to just add require 'bundler/setup' right after require 'rubygems'
The text was updated successfully, but these errors were encountered:
Hello, @hobeone.
Thanks for your feedback! Initially I not planned to add bundler loading when running control script, because it may significantly (about 2-3 seconds) increase control script startup time, especially for Gemfile with alot of gems (for example, rake also doesn't loads bundler).
But after this issue, I'm start thinking what it may be no so big deal to add bundler/setup into script, because in 99% cases in my expirience I'm running this with bundle exec. So, if you will make pull request I accept it.
P.S.: You always have option to run control script with bundle exec or change generated ctrl file (its really rare when you need to regenerate it).
The generated _ctl scripts don't require 'bundler/setup' and so don't see gem files that bundler has downloaded that are not part of the main gem install.
I ran into this after setting up my Gemfile to use the git head version of daemons-rails (which rvm and bundler installed to /usr/local/rvm/gems/ruby-head@rails4/bundler/gems/daemons-rails-0bf7123eb5e6) rubygems doesn't pick that up if you don't include bundler.
The simple fix was to just add require 'bundler/setup' right after require 'rubygems'
The text was updated successfully, but these errors were encountered: