Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sphinx Search multiple config files import

How can you use multiple config files on Spinx Search (preferably by including one inside another)? I need it for different environments, because the only difference between development, stage and production is the database credentials. Is there an easy way to achieve this?

like image 316
cornelv Avatar asked Mar 16 '26 11:03

cornelv


1 Answers

On linux, can use dymamic config files.

ie the config file can be executed by arbitary parsers. So the config file could be a PHP, perl or even shell script.

http://sphinxsearch.com/blog/2013/11/05/sphinx-configuration-features-and-tricks/

More: https://www.google.com/search?q=sphinx+search+shebang

like image 188
barryhunter Avatar answered Mar 19 '26 05:03

barryhunter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!