Aug 27, 2011

JRuby cannot find bundle binary file when do bundle exec

When I run:

jruby -S bundle exec spork


It tells me that it cannot find command because the spork gem is not installed. But I already installed it under vendor/gems.

To bypass that, please do:
jruby -S bundle install --path vendor/gems --binstubs


This will install binaries of gems under RAILS_ROOT/bin.
And you can run:

jruby -S bin/spork