How do I specify local .gem files in my Gemfile?

前端 未结 7 1007
野的像风
野的像风 2020-12-22 18:16

I have a couple of gem files which I install via gem install xx.gem. Can I tell Bundler to use them? Or do I have to specify the source path?

相关标签:
7条回答
  • 2020-12-22 19:13

    I would unpack your gem in the application vendor folder

    gem unpack your.gem --target /path_to_app/vendor/gems/
    

    Then add the path on the Gemfile to link unpacked gem.

    gem 'your', '2.0.1', :path => 'vendor/gems/your'
    
    0 讨论(0)
提交回复
热议问题