Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/70322
Change subject: beta: tweak $wgLoadScript to use the bits cache
......................................................................
beta: tweak $wgLoadScript to use the bits cache
On beta, the load.php script was relative whereas production points it
to the bits cache. This patch adds a realm varying entry in
$wmfHostnames which we can then use to set $wgLoadScript.
Change-Id: I12e7064805646a3f7b933654c25c83217bb333e4
---
M wmf-config/CommonSettings.php
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/22/70322/1
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index eb0bfa9..6d904be 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -104,12 +104,14 @@
$wmfHostnames = array();
switch( $wmfRealm ) {
case 'labs':
+ $wmfHostnames['bits'] = 'bits.beta.wmflabs.org';
$wmfHostnames['meta'] = 'meta.wikimedia.beta.wmflabs.org';
$wmfHostnames['upload'] = 'upload.beta.wmflabs.org';
$wmfHostnames['wikidata'] = 'wikidata.beta.wmflabs.org';
break;
case 'production':
default:
+ $wmfHostnames['bits'] = 'bits.wikimedia.org';
$wmfHostnames['meta'] = 'meta.wikimedia.org';
$wmfHostnames['upload'] = 'upload.wikimedia.org';
$wmfHostnames['wikidata'] = 'www.wikidata.org';
@@ -282,9 +284,9 @@
$wgRedirectScript = $wgScriptPath . '/redirect.php';
$wgInternalServer = $wgCanonicalServer;
-if ( $wmfRealm == 'production' && $wgDBname != 'testwiki' && isset(
$_SERVER['SERVER_NAME'] ) ) {
+if ( $wgDBname != 'testwiki' && isset( $_SERVER['SERVER_NAME'] ) ) {
// Make testing JS/skin changes easy by not running load.php through
bits for testwiki
- $wgLoadScript =
"//bits.wikimedia.org/{$_SERVER['SERVER_NAME']}/load.php";
+ $wgLoadScript =
"//{$wmfHostnames['bits']}/{$_SERVER['SERVER_NAME']}/load.php";
}
$wgCacheDirectory = '/tmp/mw-cache-' . $wmfVersionNumber;
--
To view, visit https://gerrit.wikimedia.org/r/70322
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I12e7064805646a3f7b933654c25c83217bb333e4
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits