ruby on rails - Bundler can't find torquebox-web gem when runing script/console -
i'm trying rails 2.3 application working bundler/torquebox on linux (redhat) server. application works correctly through jboss, won't let me start console. following error when running jruby script/console
:
bundler not find compatible versions gem "torquebox-web": in snapshot (gemfile.lock): torquebox-web (2.3.1) in gemfile: torquebox (= 2.3.1) ruby depends on torquebox-web (= 2.3.1) ruby running `bundle update` rebuild snapshot scratch, using gems in gemfile, may resolve conflict.
when run jruby -s bundle update
tells me using right versions of gems, console still won't work.
i'm running rails 2.3.18, torquebox 2.3.1, , bundler 1.3.5. worth noting works correctly on windows development machine , on rails 3.2 applications (using jruby script/rails console
). ideas might causing this?
jruby script/console
apparently needs jruby in path
work correctly. if isn't added path
, command pick system ruby (or whatever else might in path
).
to fix this, able run following commands:
export path=$jruby_home/bin:$path jruby script/console
as simon pointed out, using bundle exec
before jruby
call idea too:
bundle exec jruby script/console
if don't want run export
command every time, add environment variable set of other environment variables.
Comments
Post a Comment