Nick Ginanto
Nick Ginanto

Reputation: 32190

Installing gems inside the project folder

Is there a way to install gems via bundle install so they won't install in the ruby folder but in the project's folder? (and I'll use .gitignore on it)

Is there a way of doing this for only some of the gems?

Upvotes: 1

Views: 1691

Answers (1)

Jean-Louis Giordano
Jean-Louis Giordano

Reputation: 1967

You can specify the installation path with --path:

bundle install --path='./gems/'

This is a remembered option, so you only need to specify it the first time.

Upvotes: 5

Related Questions