Добавлена настройка соединения Sphinx (возможен Unix Socket)

This commit is contained in:
Jack Stdin
2016-02-21 00:15:12 +03:00
parent c2799674b3
commit 5a5c2211db
5 changed files with 14 additions and 9 deletions

View File

@@ -21,7 +21,6 @@ class SphinxHelper:
if not os.path.exists(folders.temp):
os.makedirs(folders.temp)
def configure_indexer(self, indexer_binary, config_filename):
logging.info("Start configuring Sphinx...")
self.index_binary = indexer_binary
@@ -144,7 +143,8 @@ class SphinxHelper:
out_filename = os.path.abspath(config_fname)
logging.info("Creating main config %s...", out_filename)
conf_data = template('aore/templates/sphinx/sphinx.conf', sphinx_var_path=sphinx_conf.var_dir)
conf_data = template('aore/templates/sphinx/sphinx.conf', sphinx_listen=sphinx_conf.listen,
sphinx_var_path=sphinx_conf.var_dir)
f = open(out_filename, "w")
for fname, fpath in self.files.iteritems():