我在 Heroku 上运行 Rails 3 应用程序。我在Thinking Sphinx
我的应用程序中使用搜索引擎。为了使它与 Heroku 一起工作,我flying-sphinx
按照 Heroku 文档中的建议在我的 gemfile 中添加了一个 gem。
这就是我的 gemfile 中的内容
gem 'thinking-sphinx', '2.0.11'
gem 'flying-sphinx', '0.7.0'
按照这里提到的步骤https://devcenter.heroku.com/articles/flying_sphinx,添加飞行狮身人面像插件(Heroku 插件:添加飞行狮身人面像:木)后,当我运行 heroku 运行飞行狮身人面像配置我得到以下错误:
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.8.0/lib/flying_sphinx/sphinx_configuration.rb:2:in 'initialize': uninitialized constant FlyingSphinx::SphinxConfiguration::ThinkingSphinx (NameError)
from /app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.8.0/lib/flying_sphinx/cli.rb:31:in 'new'
from /app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.8.0/lib/flying_sphinx/cli.rb:31:in 'configure'
from /app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.8.0/lib/flying_sphinx/cli.rb:20:in 'block in run'
from /app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.8.0/lib/flying_sphinx/cli.rb:20:in 'each'
from /app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.8.0/lib/flying_sphinx/cli.rb:20:in 'all?'
from /app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.8.0/lib/flying_sphinx/cli.rb:20:in 'run'
from /app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.8.0/bin/flying-sphinx:5:in ''
from vendor/bundle/ruby/1.9.1/bin/flying-sphinx:19:in 'load'
from vendor/bundle/ruby/1.9.1/bin/flying-sphinx:19:in ''
而且我无法继续进行。