make RVM also load gems at vendor/gems

喜欢而已 提交于 2020-01-16 03:21:50

问题


I have a project (tracks) that ships its gems under vendor/gems. Some of these gems are no longer available trough rubygems, so a rake gems:install fails.

I want rubygems to load gems from both the rvm-gem-dirs (/usr/local/rvm/gems/ruby-1.8.7-p334@tracks, /usr/local/rvm/gems/ruby-1.8.7-p334@global) and from the vendor/gems.

How can I add such a dir to the rubygems load path? Is that possible at all?


回答1:


Add the vendor/gems directory to the GEM_PATH environment variable.

GEM_PATH=$GEM_PATH:/home/berkes/your_project/vendor/gems


来源:https://stackoverflow.com/questions/5504337/make-rvm-also-load-gems-at-vendor-gems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!