mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Add setup check to detect attempts to install on a path
Summary: We don't support this and say so in the documentation, but can check explicitly. https://github.com/facebook/phabricator/issues/148 Test Plan: Set base-uri to stuff with/without paths, verified setup caught mistakes and gave useful errors. Reviewers: vrana, btrahan Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D3768
This commit is contained in:
parent
38c83ef846
commit
680076497c
1 changed files with 15 additions and 0 deletions
|
@ -357,6 +357,21 @@ final class PhabricatorSetup {
|
|||
"'http://example.com/'.");
|
||||
return;
|
||||
}
|
||||
|
||||
$host_path = $host_uri->getPath();
|
||||
if ($host_path == '/') {
|
||||
self::write(" okay phabricator.base-uri path\n");
|
||||
} else {
|
||||
self::writeFailure();
|
||||
self::write(
|
||||
"Your 'phabricator.base-uri' setting includes a path, but should ".
|
||||
"not (e.g., 'http://phabricator.example.com/' is OK, but ".
|
||||
"'http://example.com/phabricator/' is not). Phabricator must be ".
|
||||
"installed on an entire domain, it can not be installed on a ".
|
||||
"path alongside other applications. Consult the documentation ".
|
||||
"for more details.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$timezone = nonempty(
|
||||
|
|
Loading…
Reference in a new issue