首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Torquebox没有找到我的手柄文件中的Gems

Torquebox没有找到我的手柄文件中的Gems
EN

Stack Overflow用户
提问于 2014-09-25 18:56:42
回答 1查看 328关注 0票数 0

我已经将我的Rails应用程序打包为一个Knob文件,并试图将它部署到QA环境中正在运行的Torquebox服务器中。

在启动应用程序时,我会得到以下错误:

代码语言:javascript
复制
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)

简而言之,邦德勒试图找到RAK10.3.2,它包含在vendor/bundle/jruby/1.9/gems/rake-10.3.2下的我的旋钮文件中。

宝石放置的地方合适吗?为什么torquebox不把这个包括在文件里?

我尝试过自动部署,方法是将旋钮文件放到部署目录中,以及通过Web管理控制台。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-06-08 01:38:27

使用项目目录中的package_gems开关运行torquebox,在旋钮工件- http://torquebox.org/documentation/3.0.0/torquebox-cmd.html中包含所有的邦德勒宝石依赖项。

代码语言:javascript
复制
torquebox archive --package_gems
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26046043

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档