开发者

Run gem directly from git repo with bundler

开发者 https://www.devze.com 2023-01-23 12:42 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消