You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presently trying to index on a machine where sphinx is not running results in:
sh-4.2$ bundle exec rake ts:rt:index
The Sphinx daemon is not currently running. Real-time indices can only be
populated by sending commands to a running daemon.
But in production it is normal to run sphinx in a dedicated server/container. Where there is no rails or anything else, just the config file generated by thinking-sphinx.
And afterwards the command works. This is to trick the :running check to succeed. Note that presently also SIGHUP is sent to the process and it is checked for being present afterwards which is another thing that external sphinx does not need.
I think that this check is not necessary as things will fails with clear enough error message in case there is no running sphinx. But if it is useful to some, then at least there should be an option to skip that check.
The text was updated successfully, but these errors were encountered:
Would be good for this to be documented. Also I found a curious issue. Running rake ts:stop with this option produces a process that sits waiting and kills any process it sees in pid file, whenever pid file is created. It made me mad.
Presently trying to index on a machine where sphinx is not running results in:
But in production it is normal to run sphinx in a dedicated server/container. Where there is no rails or anything else, just the config file generated by thinking-sphinx.
I have to do something like:
And afterwards the command works. This is to trick the
:running
check to succeed. Note that presently alsoSIGHUP
is sent to the process and it is checked for being present afterwards which is another thing that external sphinx does not need.I think that this check is not necessary as things will fails with clear enough error message in case there is no running sphinx. But if it is useful to some, then at least there should be an option to skip that check.
The text was updated successfully, but these errors were encountered: