2014-09-25 13 views
0

我已經將我的Rails應用打包爲一個Knob文件,並且試圖將它部署到我們的QA環境中正在運行的Torquebox服務器中。Torquebox沒有在我的旋鈕文件中發現綁定的Gems

當啓動應用程序時,我得到以下錯誤:

14:24:24,513 ERROR [org.torquebox.core.runtime] (pool-3-thread-1) Error during execution:  ENV['RAILS_ROOT']=RACK_ROOT 
ENV['RAILS_ENV']=RACK_ENV 
require %q(org/torquebox/web/rails/boot) 
: org.jruby.exceptions.RaiseException: (GemNotFound) Could not find rake-10.3.2 in any of the sources 
at RUBY.materialize(/opt/torquebox/jruby/lib/ruby/gems/shared/gems/bundler-1.5.3/lib/bundler/spec_set.rb:92) at org.jruby.RubyArray.map!(org/jruby/RubyArray.java:2441) 
at RUBY.materialize(/opt/torquebox/jruby/lib/ruby/gems/shared/gems/bundler-1.5.3/lib/bundler/spec_set.rb:85) at RUBY.specs(/opt/torquebox/jruby/lib/ruby/gems/shared/gems/bundler-1.5.3/lib/bundler/definition.rb:133) at RUBY.specs_for(/opt/torquebox/jruby/lib/ruby/gems/shared/gems/bundler-1.5.3/lib/bundler/definition.rb:178) at RUBY.requested_specs(/opt/torquebox/jruby/lib/ruby/gems/shared/gems/bundler-1.5.3/lib/bundler/definition.rb:167) at RUBY.requested_specs(/opt/torquebox/jruby/lib/ruby/gems/shared/gems/bundler-1.5.3/lib/bundler/environment.rb:18) at RUBY.setup(/opt/torquebox/jruby/lib/ruby/gems/shared/gems/bundler-1.5.3/lib/bundler/runtime.rb:13) at RUBY.setup(/opt/torquebox/jruby/lib/ruby/gems/shared/gems/bundler-1.5.3/lib/bundler.rb:119) at RUBY.(root)(/opt/torquebox/jruby/lib/ruby/gems/shared/gems/bundler-1.5.3/lib/bundler/setup.rb:17) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1085) 
at Kernel.require(/opt/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) at Kernel.require(/opt/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53) at RUBY.(root)(/opt/torquebox-3.1.0/jboss/auth-platform/tmp/vfs/temp8f8160d3b3c8c411/auth-platform.knob-6a482ebab5ccfc78/config/boot.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1085) 
at Kernel.require(/opt/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) at Kernel.require(/opt/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53) at RUBY.(root)(/opt/torquebox-3.1.0/jboss/auth-platform/tmp/vfs/temp8f8160d3b3c8c411/auth-platform.knob-6a482ebab5ccfc78/config/boot.rb:9) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1085) 
at Kernel.require(/opt/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) at Kernel.require(/opt/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53) at RUBY.(root)(/opt/torquebox-3.1.0/jboss/auth-platform/tmp/vfs/temp8f8160d3b3c8c411/auth-platform.knob-6a482ebab5ccfc78/config/application.rb:1) at org.jruby.RubyKernel.load(org/jruby/RubyKernel.java:1101) 
at RUBY.(root)(/opt/torquebox-3.1.0/jboss/auth-platform/tmp/vfs/temp8f8160d3b3c8c411/auth-platform.knob-6a482ebab5ccfc78/config/application.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1085) 
at Kernel.require(/opt/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) at Kernel.require(/opt/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53) at RUBY.(root)(/opt/torquebox-3.1.0/jboss/auth-platform/tmp/vfs/temp8f8160d3b3c8c411/auth-platform.knob-6a482ebab5ccfc78/config/environment.rb:1) 

總之,捆綁器試圖找到耙10.3.2,其中包括在vendor/bundle/jruby/1.9/gems/rake-10.3.2下我的旋鈕文件。

放置寶石是否合適?爲什麼扭矩箱在文件中不包括這個?

我已經嘗試通過將旋鈕文件放入部署目錄以及通過Web管理控制檯進行自動部署。

回答

相關問題