mysociety / planningalerts-app

Find out and have your say about what's being built and knocked down in your area.
www.planningalerts.org.au
Other
0 stars 1 forks source link

Template Sphinx configs through mysociety's ugly files #192

Closed stevenday closed 9 years ago

stevenday commented 9 years ago

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 or rake ts:configure without setting INDEX_ONLY=true will fail anyway.

Closes #181

lizconlan commented 9 years ago

@stevenday good point about file permissions!

lizconlan commented 9 years ago

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.

stevenday commented 9 years ago

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