4

How do I tell bundler to no search the Gemfile in the current directory but somewhere else?

I want to do

bundle install --some-option path/to/Gemfile

instead of

cd path/to & bundle install

1 Answer 1

7

You can use the --gemfile option:

--gemfile= The location of the Gemfile(5) which Bundler should use. This defaults to a Gemfile(5) in the current working directory. In general, Bundler will assume that the location of the Gemfile(5) is also the project's root and will try to find Gemfile.lock and vendor/cache relative to this location.

Source: Bundler manual

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.