Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorDaemonsSetupCheck.php
Show All 20 Lines | try { | ||||
// Just skip this warning if the query fails for some reason. | // Just skip this warning if the query fails for some reason. | ||||
$no_daemons = false; | $no_daemons = false; | ||||
} | } | ||||
if ($no_daemons) { | if ($no_daemons) { | ||||
$doc_href = PhabricatorEnv::getDoclink('Managing Daemons with phd'); | $doc_href = PhabricatorEnv::getDoclink('Managing Daemons with phd'); | ||||
$summary = pht( | $summary = pht( | ||||
'You must start the Phabricator daemons to send email, rebuild '. | 'You must start the %s daemons to send email, rebuild '. | ||||
'search indexes, and do other background processing.'); | 'search indexes, and do other background processing.', | ||||
PhabricatorPlatformSite::getName()); | |||||
$message = pht( | $message = pht( | ||||
'The Phabricator daemons are not running, so Phabricator will not '. | 'The %s daemons are not running, so %s will not '. | ||||
'be able to perform background processing (including sending email, '. | 'be able to perform background processing (including sending email, '. | ||||
'rebuilding search indexes, importing commits, cleaning up old data, '. | 'rebuilding search indexes, importing commits, cleaning up old data, '. | ||||
'and running builds).'. | 'and running builds).'. | ||||
"\n\n". | "\n\n". | ||||
'Use %s to start daemons. See %s for more information.', | 'Use %s to start daemons. See %s for more information.', | ||||
PhabricatorPlatformSite::getName(), | |||||
PhabricatorPlatformSite::getName(), | |||||
phutil_tag('tt', array(), 'bin/phd start'), | phutil_tag('tt', array(), 'bin/phd start'), | ||||
phutil_tag( | phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => $doc_href, | 'href' => $doc_href, | ||||
'target' => '_blank', | 'target' => '_blank', | ||||
), | ), | ||||
pht('Managing Daemons with phd'))); | pht('Managing Daemons with phd'))); | ||||
$this->newIssue('daemons.not-running') | $this->newIssue('daemons.not-running') | ||||
->setShortName(pht('Daemons Not Running')) | ->setShortName(pht('Daemons Not Running')) | ||||
->setName(pht('Phabricator Daemons Are Not Running')) | ->setName(pht('%s Daemons Are Not Running', | ||||
PhabricatorPlatformSite::getName())) | |||||
->setSummary($summary) | ->setSummary($summary) | ||||
->setMessage($message) | ->setMessage($message) | ||||
->addCommand('phabricator/ $ ./bin/phd start'); | ->addCommand('phabricator/ $ ./bin/phd start'); | ||||
} | } | ||||
$expect_user = PhabricatorEnv::getEnvConfig('phd.user'); | $expect_user = PhabricatorEnv::getEnvConfig('phd.user'); | ||||
if (strlen($expect_user)) { | if (strlen($expect_user)) { | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0