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 ruby version is then managed by the rails project itself. (with .ruby-version files that get evaluated by rvm-auto-ruby)
Each rails project has also a .ruby-gemset file which set up the namespace.
I usually install bundler only once (in @global-gemset) per ruby version on my system:
Steps to reproduce
Install min 2 different ruby versions with bundler in global gemset
$ rvm use 2.5.1
$ rvm @global do gem install bundler
$ rvm use 2.4.4
$ rvm @global do gem install bundler
Expected behavior
Running passenger/nginx without bundler/dep_proxy (LoadError)-Error. Like it worked with the previous version of rvm.
I've had a brief discussion with @FloorD and @CamJN from @phusion because first I was unsure if the problem is passenger related or rvm.
After I send them a lot of debug output, Camden replied with:
After discussing this with my colleagues we found that in the backtrace is the following line
/Users/neumayr/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/definition.rb:888:in `block (2 levels) in expand_dependencies'
That says bundler is installed in ~/.rvm/rubies/ruby-2.5.1/lib/ruby/gems. which is not a gemset path, and therefore not in the GEM_PATH. How it got there we aren't sure, and you'll likely have to ask the RVM guys for help fixing it, but that seems like a probable cause to us.
Actual behavior
cannot load such file -- bundler/dep_proxy (LoadError)
Description
Latest
rvm
version cannot load bundler from@global
-gemset in a Passenger + Nginx configuration.I'm running passenger and nginx on my local development environment described here.
Nginx configuration:
I’ve used the
rvm-auto-ruby
feature because I have running multiple apps locally that are in a different range of ruby versions.For the
*.localhost
setup I use launchdns - the setup is straightforward:The ruby version is then managed by the rails project itself. (with
.ruby-version
files that get evaluated byrvm-auto-ruby
)Each rails project has also a
.ruby-gemset
file which set up the namespace.I usually install
bundler
only once (in @global-gemset) per ruby version on my system:Steps to reproduce
Install min 2 different ruby versions with
bundler
in global gemsetExpected behavior
Running passenger/nginx without
bundler/dep_proxy (LoadError)
-Error. Like it worked with the previous version of rvm.I've had a brief discussion with @FloorD and @CamJN from @phusion because first I was unsure if the problem is passenger related or rvm.
After I send them a lot of debug output, Camden replied with:
Actual behavior
cannot load such file -- bundler/dep_proxy (LoadError)
The stdout/stderr output of the subprocess so far is:
Workaround
My current workaround is to install
bunder
to each gemset manually.Environment info
$ rvm info
The text was updated successfully, but these errors were encountered: