gpt4 book ai didi

ruby-on-rails - Ruby on Rails 与 Tomcat

转载 作者:行者123 更新时间:2023-11-28 22:42:24 25 4
gpt4 key购买 nike

我正在尝试在 tomcat 上运行我的 Rails 应用。

首先,我通过gems安装warbler,一切正常!基本上,我在我的 gem 文件中添加了:“gem 'warbler'”,然后是“bundle install”。好的。

之后,进入localhost:8083 (tomcat) >> MANAGER APP >> WAR file to deploy,选择warbler生成的war文件。 Tomcat 说OK

当我访问页面 localhost:8083/TicketProject 时,问题就出在这里。

Tomcat 告诉我:

Internal Server Error (500)
Request Method: GET
Request URL: localhost:8083/TicketProject/

You have requested: pg >= 0 The bundle currently has pg locked at 0.17.1. Try running `bundle update pg`
from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/gems/gems/bundler-1.7.2/lib/bundler/resolver.rb:357:in `resolve'
from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/gems/gems/bundler-1.7.2/lib/bundler/resolver.rb:164:in `start'
from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/gems/gems/bundler-1.7.2/lib/bundler/resolver.rb:129:in `resolve'
from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/gems/gems/bundler-1.7.2/lib/bundler/definition.rb:193:in `resolve'
from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/gems/gems/bundler-1.7.2/lib/bundler/definition.rb:132:in `specs'
from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/gems/gems/bundler-1.7.2/lib/bundler/definition.rb:177:in `specs_for'
from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/gems/gems/bundler-1.7.2/lib/bundler/definition.rb:166:in `requested_specs' from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/gems/gems/bundler-1.7.2/lib/bundler/environment.rb:18:in `requested_specs'
from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/gems/gems/bundler-1.7.2/lib/bundler/runtime.rb:13:in `setup'
from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/gems/gems/bundler-1.7.2/lib/bundler.rb:121:in `setup' from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/gems/gems/bundler-1.7.2/lib/bundler/setup.rb:17:in `(root)'
from org/jruby/RubyKernel.java:1065:in `require' from /C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/lib/jruby-stdlib-complete-1.7.16.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in `(root)'
from /C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/lib/jruby-stdlib-complete-1.7.16.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:135:in `require'
from org/jruby/RubyKernel.java:1065:in `require' from C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/config/boot.rb:4:in `(root)'
from /C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/lib/jruby-stdlib-complete-1.7.16.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in `(root)'
from /C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/lib/jruby-stdlib-complete-1.7.16.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
from file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 8.0/webapps/TicketProject/WEB-INF/lib/jruby-rack-1.1.16.jar!/jruby/rack/rails/environment3.rb:23:in `load_environment'

有人可以帮助我吗?提前致谢!!

最佳答案

忘掉 Tomcat,将 Passenger 与 Linux Server 结合使用.. 完美运行!

关于ruby-on-rails - Ruby on Rails 与 Tomcat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26105520/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com