如何在gemfile中指向gem分支路径。
这就是我正在做的事情:
gem 'rails', path: '/home/ubuntu/workspace/Fork/rails', :branch => 'any_of'
但是当我运行bundle update
时,它没有显示任何类似链轮的分支。
Using sprockets-rails (2.0.0.rc4) from git://github.com/rails/sprockets-rails.git (at master)
Using rails (4.1.0.beta) from source at /home/ubuntu/workspace/Fork/rails
有没有打字错误?
发布于 2013-06-10 00:20:15
在您的应用程序中运行此命令。
bundle config local.rails /home/ubuntu/workspace/Fork/rails
然后在Gemfile中指定github源代码,它将被覆盖。
gem 'rails', :github => 'rails/rails', :branch => 'any_of'
https://stackoverflow.com/questions/17007277
复制相似问题