【发布时间】:2017-03-07 09:08:18
【问题描述】:
通过 Whenever gem 运行 cron 作业,其中 rake "ts:index" 设置为以特定频率运行,sphinx_index.log 返回一个奇怪的错误(日志中的唯一信息):
Your Ruby version is 1.9.3, but your Gemfile specified 2.2.3
如果在服务器上手动运行bundle exec rake ts:rebuild,则进程正常执行。 (我还没有测试索引是否确实发生并获取更改)。 Ubuntu 服务器确实安装了 2.2.3,尽管它可能已经安装了 1.9.3。
为什么会发生这种情况,其后果是什么?
【问题讨论】:
标签: ruby-on-rails thinking-sphinx whenever