1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adding Elasticsearch Server IP by File in config.php?

Discussion in 'Enhanced Search Suggestions' started by Marcus, Dec 21, 2014.

  1. Marcus

    Marcus Well-Known Member

    Is it possible to add the elasticsearch server ip with a file configuration within config.php or another file ? That would be perfect for automatic deployment.
     
    Xon likes this.
  2. digitalpoint

    digitalpoint Well-Known Member

    If you are doing automated deployment, I assume you would be doing something to set the unique options for the installation? So why not just piggyback that process?

    1 line of code could do it:
    PHP:
    XenForo_Model::create('XenForo_Model_Option')->updateOption('elasticSearchServer', array('host' => 'elastic search IP here''port' => 9200));
     
    Marcus and Xon like this.

Share This Page