diff --git a/.gitignore b/.gitignore index fc3ad0e0f6..6ea4dd528b 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,6 @@ # User-accessible hook for adhoc debugging scripts /support/debug.php + +# Users can link binaries here +/support/bin/* diff --git a/src/applications/config/option/PhabricatorCoreConfigOptions.php b/src/applications/config/option/PhabricatorCoreConfigOptions.php index c608e4f4e5..a5910c2441 100644 --- a/src/applications/config/option/PhabricatorCoreConfigOptions.php +++ b/src/applications/config/option/PhabricatorCoreConfigOptions.php @@ -84,7 +84,8 @@ final class PhabricatorCoreConfigOptions "of the user running Phabricator (normally 'apache', 'httpd', or ". "'nobody'). Here you can add extra directories to the \$PATH ". "environment variable, for when these binaries are in ". - "non-standard locations.")) + "non-standard locations. Note that you can also put binaries in ". + "`phabricator/support/bin`.")) ->addExample('/usr/local/bin', pht('Add One Path')) ->addExample("/usr/bin\n/usr/local/bin", pht('Add Multiple Paths')), $this->newOption('tokenizer.ondemand', 'bool', false) diff --git a/support/bin/README b/support/bin/README new file mode 100644 index 0000000000..22761983cd --- /dev/null +++ b/support/bin/README @@ -0,0 +1,3 @@ +Phabricator will look in this directory for binaries (like "git", "hg", "svn", +"diff", etc) before looking elsewhere. If you want Phabricator to use a +specific version of some binary, copy or symlink it here.