I'm trying to deploy a jruby/rails project that uses a forked version of rails from a local git repo. My Gemfile includes the following line:
gem 'rails', :git => File.expand_path('../../rails', __FILE__), :branch => '3-1-backported
I run jruby -S bundle install --deployment --binstubs --standalone && jruby -S bundle exec rake war to create my deployment war. However, bundler says rails is not checked out and wants to install it. In the war, I have WEB-INF/gems/gems (normal gems) and WEB-INF/gems/bundler/gems (git-based gems).
I'm curious why bundler handles :git-based gems differently from regular gem sources (for deployment mode). Shouldn't bundler (or warbler) simply pre-build the :git based gems and then include them like normal gems?
Thanks in advance.