我想在tomcat上運行我的rails應用程序。Ruby on Rails vs Tomcat
首先,我通過寶石安裝鶯,一切都好! 基本上,我在我的gem文件中添加了:「gem'warbler'」,然後是「捆綁安裝」。好。
之後,我去了localhost:8083(tomcat)>> MANAGER APP >> WAR文件來部署和選擇由「warbler」生成的war文件。雄貓說好吧。
當我訪問頁面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'
有人能幫助我嗎? 在此先感謝!
我不知道爲什麼,但我不明白這一點。 - ' – 2014-09-30 07:17:31