mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-14 16:51:08 +01:00
Fix some daemon ish.
This commit is contained in:
parent
173eaf48f4
commit
c2f10f19b1
3 changed files with 6 additions and 1 deletions
|
@ -16,6 +16,9 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$include_path = ini_get('include_path');
|
||||||
|
ini_set('include_path', $include_path.':'.dirname(__FILE__).'/../../');
|
||||||
|
|
||||||
require_once dirname(dirname(__FILE__)).'/conf/__init_conf__.php';
|
require_once dirname(dirname(__FILE__)).'/conf/__init_conf__.php';
|
||||||
|
|
||||||
$env = getenv('PHABRICATOR_ENV');
|
$env = getenv('PHABRICATOR_ENV');
|
||||||
|
@ -30,6 +33,7 @@ $conf['phabricator.env'] = $env;
|
||||||
phutil_require_module('phabricator', 'infrastructure/env');
|
phutil_require_module('phabricator', 'infrastructure/env');
|
||||||
PhabricatorEnv::setEnvConfig($conf);
|
PhabricatorEnv::setEnvConfig($conf);
|
||||||
|
|
||||||
|
|
||||||
foreach (PhabricatorEnv::getEnvConfig('load-libraries') as $library) {
|
foreach (PhabricatorEnv::getEnvConfig('load-libraries') as $library) {
|
||||||
phutil_load_library($library);
|
phutil_load_library($library);
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ abstract class PhabricatorRepositoryCommitParserWorker
|
||||||
}
|
}
|
||||||
|
|
||||||
final protected function shouldQueueFollowupTasks() {
|
final protected function shouldQueueFollowupTasks() {
|
||||||
return !!idx($this->getTaskData(), 'only');
|
return !idx($this->getTaskData(), 'only');
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract protected function parseCommit(
|
abstract protected function parseCommit(
|
||||||
|
|
|
@ -10,6 +10,7 @@ phutil_require_module('phabricator', 'applications/repository/worker/commitmessa
|
||||||
phutil_require_module('phabricator', 'infrastructure/daemon/workers/storage/task');
|
phutil_require_module('phabricator', 'infrastructure/daemon/workers/storage/task');
|
||||||
|
|
||||||
phutil_require_module('phutil', 'future/exec');
|
phutil_require_module('phutil', 'future/exec');
|
||||||
|
phutil_require_module('phutil', 'utils');
|
||||||
|
|
||||||
|
|
||||||
phutil_require_source('PhabricatorRepositoryGitCommitMessageParserWorker.php');
|
phutil_require_source('PhabricatorRepositoryGitCommitMessageParserWorker.php');
|
||||||
|
|
Loading…
Reference in a new issue