我之前已经知道类似的主题,但是这是来自这里的git repo:https://github.com/obfuscurity/descartes我下载并尽力遵循作者发布的稀疏指示。
这就是我现在所处的位置:
在做工头开始之后我得到了这个输出:
/services/descartes-master/lib/descartes/models/metrics.rb:28:in `update': undefined method `update' for MetricCacheInfo:Class (NoMethodError)
以下是输出的其余部分:
16:36:17 web.1 | from /services/descartes-master/lib/descartes/model/metrics.rb:17:in `load'
16:36:17 web.1 | from /services/descartes-master/config.ru:28:in `block in <main>'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
16:36:17 web.1 | from /services/descartes-master/config.ru:in `new'
16:36:17 web.1 | from /services/descartes-master/config.ru:in `<main>'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/bin/rackup:23:in `load'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/bin/rackup:23:in `<main>'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/bin/ruby_executable_hooks:15:in `eval'
16:36:17 web.1 | from /usr/local/rvm/gems/ruby-1.9.3-p448/bin/ruby_executable_hooks:15:in `<main>'
16:36:17 web.1 | exited with code 1
16:36:17 system | sending SIGTERM to all processes
正如你所看到的,我正在使用rvm和bundle with ruby version 1.9.3
以下是metrics.rb:28文件的代码:https://github.com/obfuscurity/descartes/blob/master/lib/descartes/models/metrics.rb
如果我能提供任何其他信息,请告诉我。 感谢