Ladsgroup added a comment.
One thing that seems missing from the documentation is how to insert your
site into sites table. That's actually hard to do manually and I never was able
to do it properly. What I do is to run this type of code in eval.php
$sites = [];
$langCode = 'en';
$site = new MediaWikiSite();
$site->setGlobalId( 'clientwiki' );
$site->setGroup( 'wikipedia' );
$site->setLanguageCode( $langCode );
$site->addInterwikiId( $langCode );
$site->addNavigationId( $langCode );
$site->setPath( MediaWikiSite::PATH_PAGE,
"https://redis-dispatching-client.wmflabs.org/index.php/$1" );
$site->setPath( MediaWikiSite::PATH_FILE,
"https://redis-dispatching-client.wmflabs.org/$1" );
$sites[] = $site;
$sitesTable = SiteSQLStore::newInstance();
$sitesTable->clear();
$sitesTable->saveSites( $sites );
Of course you can skip the clear part if you want to keep other sites.
TASK DETAIL
https://phabricator.wikimedia.org/T218282
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Michael, Ladsgroup
Cc: Ladsgroup, johl, Addshore, lucamauri, Aklapper, Lea_Lacroix_WMDE,
Lydia_Pintscher, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden,
LawExplorer, _jensen, rosalieper, Jonas, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs