2011-01-24 167 views
0

我不明白,我想知道是否有其他人有与思维狮身人面像类似的问题。Rails,思维狮身人面像配置任务不工作...没有输出

[email protected]:~/apps/myapp/current$ rake ts:conf --trace RAILS_ENV="production"(in /home/rails/apps/myapp/releases/20110124214031) 
** Invoke ts:conf (first_time) 
** Invoke thinking_sphinx:configure (first_time) 
** Invoke thinking_sphinx:app_env (first_time) 
** Execute thinking_sphinx:app_env 
** Invoke environment (first_time) 
** Execute environment 
** Execute thinking_sphinx:configure 
Generating Configuration to /home/rails/apps/myapp/releases/20110124214031/config/production.sphinx.conf 
Killed 

这是我的sphinx.yml样子,以及:

development: 
    port: 9312 
test: 
    port: 9312 
production: 
    port: 9312 
    pid_file: /var/run/sphinx/searchd.pid 
    searchd_files: /home/rails/apps/myapp/shared/db/sphinx 

这是洙烦人,因为它用来工作。有什么想法吗?

回答

3

我前几天帮助过这个问题的人,事实证明这实际上是一个导致问题的不同的过期插件。也就是说,可能是这里的其他东西...

为了调试,我建议您将所有define_index块注释掉,然后将它们逐个添加回来,看看它是否是一个特别的原因。如果是这样,那么注释掉所有的字段和属性,并逐一添加它们(尽管你需要一个字段来开始 - 否则TS/Sphinx抱怨)。

否则,您正在使用哪些版本的Rails和思维狮身人面像?如果你把它缩小到一个define_index块,那块里面有什么?如果有的话,这个块是指什么联系?

+0

哦嘿帕特,感谢您的回应,您已经完成了如此出色的工作,我从来没有遇到与您的宝石一样的问题,因为它的制作精良,再次感谢您的帮助! – 2011-01-25 01:16:22