mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
17 lines
430 B
PHP
17 lines
430 B
PHP
|
<?php
|
||
|
|
||
|
// Update the "PROJ" search index, to:
|
||
|
//
|
||
|
// - Populate the index itself, which was added recently.
|
||
|
// - Populate the secondary object name index in Maniphest.
|
||
|
|
||
|
$root = dirname(phutil_get_library_root('phabricator'));
|
||
|
|
||
|
$command = new PhutilExecPassthru(
|
||
|
'php -f %s -- index --type PROJ',
|
||
|
$root.'/scripts/search/manage_search.php');
|
||
|
$err = $command->execute();
|
||
|
if ($err) {
|
||
|
throw new Exception("Update failed!");
|
||
|
}
|