You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Nova Resource:Wikispore/Runbook: Difference between revisions
Jump to navigation
Jump to search
imported>Gergő Tisza |
imported>BryanDavis (→Access: interwiki link) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
== Access == | |||
See [[Help:Accessing Cloud VPS instances|Accessing Cloud VPS instances]]. You'll need to be a member or administrator of the [[toolforge:openstack-browser/project/wikispore|wikispore project]]. | |||
== Setting up a new Wikispore instance == | == Setting up a new Wikispore instance == | ||
# Follow the steps in [[Help:MediaWiki-Vagrant in Cloud VPS#Setting up your instance with MediaWiki-Vagrant]]. | # Follow the steps in [[Help:MediaWiki-Vagrant in Cloud VPS#Setting up your instance with MediaWiki-Vagrant]]. | ||
# Download custom Wikispore Vagrant roles from [https://gerrit.wikimedia.org/r/c/mediawiki/vagrant/+/546156 gerrit 546156]: (get inside the Vagrant box with <code>cd /srv/mediawiki-vagrant; vagrant ssh</code> if needed, then) <code>cd /vagrant</code> and cherry-pick the patch (command can be copied by visiting the previous link, clicking More > Download, selecting Anonymous HTTPS and the Cherry Pick field). | # Download custom Wikispore Vagrant roles from [https://gerrit.wikimedia.org/r/c/mediawiki/vagrant/+/546156 gerrit 546156]: (get inside the Vagrant box with <code>cd /srv/mediawiki-vagrant; vagrant ssh</code> if needed, then) <code>cd /vagrant</code> and cherry-pick the patch (command can be copied by visiting the previous link, clicking More > Download, selecting Anonymous HTTPS and the Cherry Pick field). | ||
# If this is a test instance, run <code>vagrant hiera role::wikispore::beta true</code> in the Cloud VPS box, from the <code>/srv/mediawiki-vagrant</code> directory. | |||
# Run <code>vagrant provision</code> in the Cloud VPS box, from the <code>/srv/mediawiki-vagrant</code> directory. | # Run <code>vagrant provision</code> in the Cloud VPS box, from the <code>/srv/mediawiki-vagrant</code> directory. | ||
== Copying the DB of another Wikispore instance == | == Copying the DB of another Wikispore instance == | ||
(i.e. syncing up test with production | (i.e. syncing up test with production | ||
# On the source server, get into vagrant, dump with e.g. <code>mysqldump wiki | gzip -9 -c > | # On the source server, get into vagrant, dump with e.g. <code>mysqldump wiki | gzip -9 -c > /vagrant/wikispore.sql.gz</code> | ||
# Move the dump to the target server, e.g. from your local machine run <code>scp wikispore.wmflabs.org:/srv/mediawiki-vagrant/wikispore.sql.gz wikispore-test.wmflabs.org:/srv/mediawiki-vagrant/wikispore.sql.gz</code> | # Move the dump to the target server, e.g. from your local machine run <code>scp wikispore.wmflabs.org:/srv/mediawiki-vagrant/wikispore.sql.gz wikispore-test.wmflabs.org:/srv/mediawiki-vagrant/wikispore.sql.gz</code> | ||
# On the target server, get into vagrant, import with e.g. <code>zcat | # On the target server, get into vagrant, import with e.g. <code>zcat /vagrant/wikispore.sql.gz | mysql wiki</code> | ||
== Adding a new namespace == | == Adding a new namespace == |
Latest revision as of 00:34, 2 April 2021
Access
See Accessing Cloud VPS instances. You'll need to be a member or administrator of the wikispore project.
Setting up a new Wikispore instance
- Follow the steps in Help:MediaWiki-Vagrant in Cloud VPS#Setting up your instance with MediaWiki-Vagrant.
- Download custom Wikispore Vagrant roles from gerrit 546156: (get inside the Vagrant box with
cd /srv/mediawiki-vagrant; vagrant ssh
if needed, then)cd /vagrant
and cherry-pick the patch (command can be copied by visiting the previous link, clicking More > Download, selecting Anonymous HTTPS and the Cherry Pick field). - If this is a test instance, run
vagrant hiera role::wikispore::beta true
in the Cloud VPS box, from the/srv/mediawiki-vagrant
directory. - Run
vagrant provision
in the Cloud VPS box, from the/srv/mediawiki-vagrant
directory.
Copying the DB of another Wikispore instance
(i.e. syncing up test with production
- On the source server, get into vagrant, dump with e.g.
mysqldump wiki | gzip -9 -c > /vagrant/wikispore.sql.gz
- Move the dump to the target server, e.g. from your local machine run
scp wikispore.wmflabs.org:/srv/mediawiki-vagrant/wikispore.sql.gz wikispore-test.wmflabs.org:/srv/mediawiki-vagrant/wikispore.sql.gz
- On the target server, get into vagrant, import with e.g.
zcat /vagrant/wikispore.sql.gz | mysql wiki
Adding a new namespace
- Go to
Special:Namespaces
- Click on
Add a namespace
(you need to be admin) - Number should be the smallest available even number starting with 3000 (per this). Default and Canonical should be checked. Name should be the namespace name. Reason can be ignored (it's shown in the logs).
- Add the corresponding talk namespace; the number should be one higher.