I have a setup using puppet and combined all the differences in a template
$env = '<%= @aws_appbranch %>';
$wgSitename = "";
$GLOBALS["siteName"] = "";
$wgMetaNamespace = "";
$wgScriptPath = "";
$wgServer = "";
$wgDBserver = "";
$wgDBname = "";
$wgTmpDirectory = "";
$smwgSparqlQueryEndpoint = "";
$smwgSparqlUpdateEndpoint = "";
$smwgSparqlDataEndpoint = "";
$wgDebugLogGroups['NA'] = "";
#$wgArticlePath = "/wiki/$1";
if ($env === "development") {
$wgSitename = "site name";
$GLOBALS["siteName"] = $wgSitename;
$wgMetaNamespace = "";
$wgLogo = "";
$wgScriptPath = "";
$wgServer = "";
$wgDBserver = "";
$wgDBname = "";
$wgTmpDirectory = "$IP/images/temp";
$wgDebugLogGroups['NA'] = '$IP/ldap_debug';
$wgFavicon = "$wgScriptPath/ex.ico";
// $wgDebugToolbar = true;
$wgAllowImageTag = true;
}
else if ($env === "staging") {
$wgSitename = "";
$GLOBALS["siteName"] = $wgSitename;
$wgMetaNamespace = "";
$wgLogo = "/skins/chameleon/ex.png";
$wgScriptPath = "";
$wgServer = "";
$wgDBserver = "";
$wgDBname = "";
$wgTmpDirectory = "$IP/images/temp";
$wgDebugLogGroups['NA'] = '"$IP/ldap_debug';
$wgFavicon = "$wgScriptPath/ex.ico";
$wgAllowImageTag = true;
#$wgDebugToolbar = true;
}
-----Original Message-----
From: MediaWiki-l [mailto:[email protected]] On Behalf Of
Ray Paseur
Sent: Wednesday, January 20, 2016 9:57 AM
To: [email protected]
Cc: [email protected]
Subject: [MediaWiki-l] Three Wikis, three LocalSettings.php
Colleagues: I'm looking for some "best practices" advice here.
I have three Wikis, Dev, Test, and Prod. Dev is the sandbox. Test is for
user-acceptance. Prod is the public face - exactly what you would expect.
For the most part, these Wikis share an identical code base on Git branch
"master." Development is done in branches that are pulled into master as user
acceptance is completed.
There are differences between the Wikis environments, and so I've got three
LocalSettings.php files. I can't just pull the Dev into Test or the Test into
Prod because of differences in the LocalSettings (database connections,
error_reporting, etc). Right now I'm doing a manual process outside of Git
control. This makes me itch.
I would like to keep LocalSettings.php under Git version control with the rest
of the code, but that means three files with the same name.
Would I be on firm ground if I modified LocalSettings.php to automatically
detect which Wiki is in play and adjust its own settings? How do others handle
issues like this?
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l