HOR-4865
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user