Ruby on rails 3.2 认为sphinx不生成配置文件

Ruby on rails 3.2 认为sphinx不生成配置文件,ruby-on-rails-3.2,thinking-sphinx,Ruby On Rails 3.2,Thinking Sphinx,正在将应用程序迁移到另一台服务器。。。bundle exec rake ts时:配置 雷克流产了! Errno::enoint:没有这样的文件或目录-~/app/shared/config/development.sphinx.conf 狮身人面像 development: bin_path: /usr/local/bin searchd_file_path: ~/app/shared/sphinx use_64_bit: true enable_star: 1 min_in

正在将应用程序迁移到另一台服务器。。。bundle exec rake ts时:配置 雷克流产了! Errno::enoint:没有这样的文件或目录-~/app/shared/config/development.sphinx.conf

狮身人面像

development:
  bin_path: /usr/local/bin
  searchd_file_path: ~/app/shared/sphinx
  use_64_bit: true
  enable_star: 1
  min_infix_len: 1
  max_matches: 10000
  port: 9313
development:
  bin_path: /usr/local/bin
  pid_file: ~/app/shared/tmp/searchd.pid
  configuration_file: ~/app/shared/config/development.sphinx.conf
  indices_location: ~/app/shared/sphinx
  use_64_bit: true
  enable_star: true
  min_infix_len: 2
  max_matches: 1000
  mysql41: 9313
  mem_limit: 128M
思考斯芬克斯国家

development:
  bin_path: /usr/local/bin
  searchd_file_path: ~/app/shared/sphinx
  use_64_bit: true
  enable_star: 1
  min_infix_len: 1
  max_matches: 10000
  port: 9313
development:
  bin_path: /usr/local/bin
  pid_file: ~/app/shared/tmp/searchd.pid
  configuration_file: ~/app/shared/config/development.sphinx.conf
  indices_location: ~/app/shared/sphinx
  use_64_bit: true
  enable_star: true
  min_infix_len: 2
  max_matches: 1000
  mysql41: 9313
  mem_limit: 128M

我无法理解说明development.sphinx.conf不存在的消息,因为它应该是从rake任务创建的。

答案有两个部分:

1.创建绝对路径 Ubuntu上的2索引器位于/usr/bin


答案仍然是部分的,因为索引捕获了0个文档,并且没有生成.sph文件。

是否存在~/app/shared/config目录?确实存在。它包含四个文件,它们被符号链接到app/current/config:database.yml local_env.yml sphinx.yml thinking_sphinx.ymlon进一步思考,我意识到这是一个新实例,可能sphinx被卸载了。在sudo获得安装sphinxsearch后,重新部署,确保gem文件具有sphinx思想。得到了相同的错误。你能尝试将其更改为绝对路径而不是相对路径吗?这似乎是问题所在。我还意识到我没有创建/app/shared/sphinx目录。ts:configure运行,但未找到ts:index命中生成配置到/home/jerdvo/saim/shared/config/development.sphinx.conf sh:1:/usr/local/bin/indexer:的命令。所以我没有正确安装。。。