Allow worker instances of multiple projects in parallel
[phinde.git] / bin / setup.php
index 7dacedd08b63b2551e3b79a48375d69d39635c9a..ca71aeda44448949cf78866d735e2ac6e812a2fe 100755 (executable)
@@ -1,11 +1,11 @@
 #!/usr/bin/env php
 <?php
 namespace phinde;
 #!/usr/bin/env php
 <?php
 namespace phinde;
-//configure the elasticsearch index
-set_include_path(__DIR__ . '/../src/' . PATH_SEPARATOR . get_include_path());
-require_once __DIR__ . '/../data/config.php';
-require_once 'HTTP/Request2.php';
-require_once 'Elasticsearch/Request.php';
+/**
+ * Configure the elasticsearch index.
+ * Throws away all data.
+ */
+require_once __DIR__ . '/../src/init.php';
 
 //delete old index
 $r = new Elasticsearch_Request(
 
 //delete old index
 $r = new Elasticsearch_Request(