From: Vincent Vanwaelscappel Date: Tue, 22 Feb 2022 17:22:00 +0000 (+0100) Subject: wip #5120 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=cd779c75a68c99d9fb767ec4767d45a40739c109;p=cubist_minisearch.git wip #5120 --- diff --git a/src/Index.php b/src/Index.php index 4b50337..4086489 100644 --- a/src/Index.php +++ b/src/Index.php @@ -75,8 +75,8 @@ class Index implements ShouldQueue, ShouldBeUnique $tmp = Files::tempnam(); file_put_contents($tmp, json_encode($res)); $cl = new CommandLine('nodejs'); - $cl->cd(__DIR__ . '/../js/'); - $cl->setArg(null, 'index.js'); + $cl->cd(__DIR__ . '/../'); + $cl->setArg(null, 'js/index.js'); $cl->setArg(null, $tmp); $cl->setArg(null, $fields); $cl->setArg(null, $storeFields);