Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14003362
D11399.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11399.diff
View Options
diff --git a/src/applications/config/option/PhabricatorPHDConfigOptions.php b/src/applications/config/option/PhabricatorPHDConfigOptions.php
--- a/src/applications/config/option/PhabricatorPHDConfigOptions.php
+++ b/src/applications/config/option/PhabricatorPHDConfigOptions.php
@@ -63,6 +63,13 @@
"ENORMOUS amount of output, but can help debug issues. Daemons ".
"launched in debug mode with 'phd debug' are always launched in ".
"trace mdoe. See also 'phd.verbose'.")),
+ $this->newOption('phd.variant-config', 'list<string>', array())
+ ->setDescription(
+ pht(
+ 'Specify config keys that can safely vary between the web tier '.
+ 'and the daemons. Primarily, this is a way to suppress the '.
+ '"Daemons and Web Have Different Config" setup issue on a per '.
+ 'config key basis.')),
);
}
diff --git a/src/infrastructure/env/PhabricatorEnv.php b/src/infrastructure/env/PhabricatorEnv.php
--- a/src/infrastructure/env/PhabricatorEnv.php
+++ b/src/infrastructure/env/PhabricatorEnv.php
@@ -232,7 +232,10 @@
public static function calculateEnvironmentHash() {
$keys = array_keys(self::getAllConfigKeys());
- ksort($keys);
+ sort($keys);
+
+ $skip_keys = self::getEnvConfig('phd.variant-config');
+ $keys = array_diff($keys, $skip_keys);
$values = array();
foreach ($keys as $key) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 27, 5:26 AM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6730285
Default Alt Text
D11399.diff (1 KB)
Attached To
Mode
D11399: Config - add phd.variant-config to suppress "Daemon & Web config" error message on a per key basis
Attached
Detach File
Event Timeline
Log In to Comment