This commit is contained in:
Roly Rudy Gutierrez Pinto
2018-09-11 16:32:37 -04:00
parent dca7fd53c7
commit fc5d34e135

View File

@@ -30,8 +30,11 @@ require_once __DIR__ . '/../../../bootstrap/app.php';
// php reindex_solr.php workspacename [reindexall|reindexmissing|optimizeindex] [-skip 1005] [-reindextrunksize 1000]
// var_dump($argv);
//(count ($argv) == 4) || ((count ($argv) == 5) && ($argv [3] != '-skip'))
use Illuminate\Foundation\Http\Kernel;
use ProcessMaker\Core\System;
app()->make(Kernel::class)->bootstrap();
$commandLineSyntaxMsg = "Invalid command line arguments: \n " .
"syntax: ".
"php reindex_solr.php [workspace_name] [reindexall|reindexmissing|optimizeindex|reindexone|deleteindexone] [-skip {record_number}] [-reindextrunksize {trunk_size}] [-appuid {APP_UID}]\n" .
@@ -127,6 +130,8 @@ print "PATH_HOME: " . PATH_HOME . "\n";
print "PATH_DB: " . PATH_DB . "\n";
print "PATH_CORE: " . PATH_CORE . "\n";
app()->useStoragePath(realpath(PATH_DATA));
// define the site name (instance name)
if (empty(config("system.workspace"))) {
$sObject = $workspaceName;