Closed stevenday closed 9 years ago
@stevenday good point about file permissions!
Couple of comments aside, this looks good. We should give some thought to documenting how to work with this once we've got it up and running as it might not be immediately obvious to future us.
We should give some thought to documenting how to work with this once we've got it up and running as it might not be immediately obvious to future us.
@lizconlan yeah totally, I'll add a new section on the wiki
This PR is a third attempt at solving the "multiple sites searching through one sphinxsearch daemon" problem.
https://github.com/mysociety/Non-Site-Specific/issues/588 is the related server config changes that are needed.
This PR adds:
It doesn't deal with the fact that thinkingsphinx still has a rake task that could overwrite our sphinx config. However, I've realised that when we switch to a single config file and tell thinkingsphinx to use that, it won't actually have permission to write to it, so any calls to
rake ts:index
orrake ts:configure
without settingINDEX_ONLY=true
will fail anyway.Closes #181