2011-01-24 166 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