1

我一直在尝试将我的 rails 3.1.3 应用程序的捆绑战争文件部署到亚马逊 beanstalk 实例(它只是带有额外管理软件的亚马逊 ec2。)

当应用程序启动时,它会吐出:

from /opt/tomcat7/webapps/ROOT/WEB-INF/gems/gems/bundler-1.0.22/lib/bundler/resolver.rb:286:in `resolve'
    from /opt/tomcat7/webapps/ROOT/WEB-INF/gems/gems/bundler-1.0.22/lib/bundler/resolver.rb:215:in `resolve'
    from /opt/tomcat7/webapps/ROOT/WEB-INF/gems/gems/bundler-1.0.22/lib/bundler/resolver.rb:215:in `resolve'
    from /opt/tomcat7/webapps/ROOT/WEB-INF/gems/gems/bundler-1.0.22/lib/bundler/resolver.rb:215:in `resolve'
    from /opt/tomcat7/webapps/ROOT/WEB-INF/gems/gems/bundler-1.0.22/lib/bundler/resolver.rb:215:in `resolve'

    at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:206)
    at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:56)
    at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
    ... 9 more
Caused by: org.jruby.exceptions.RaiseException: (SystemStackError) stack level too deep

想法?谢谢

4

1 回答 1

0

这是通过运行解决的bundle install --deployment,然后重新运行莺。

请参阅此捆绑程序问题:https ://github.com/carlhuda/bundler/issues/927#issuecomment-4043313

于 2012-02-19T22:34:15.907 回答