Run gem directly from git repo with bundler
I am developing a gem to use in my rails app.
The gem is located at/home/me/my_gem
.
If I use gem 'my_gem', :git => '/home/me/my_gem'
bundler takes it and installs it into ~/.bundler/...
but I want the gem to be used directly from /home/me/开发者_运维知识库my_gem
so I don't have to run bundle install
every time I do a change to the gem.
You need use the :path options
gem 'my_gem', :path => '/home/me/my_gem'
After that you even not need run a bundle install. Each time is your directory code used.
精彩评论