Tech:Handbook

From Orain Meta
Jump to navigation Jump to search

Most of the stuff below should be done automatically. If you do it manually please say so at Tech:Server admin log

When trying to debug something, take a look at the logs... Everything is logged! (see /var/log)

Ansible Stuff

Manual Pull

ansible all -i "localhost," -c local -m git -a "name=https://github.com/Orain/ansible-playbook.git dest=/root/ansible-playbook version=master"

Manual Update (doesn't pull changes from the repo)

ansible-playbook -c local --limit "<<HOSTNAMEHERE>>" /root/ansible-playbook/local.yml -i "/root/ansible-playbook/production"

MediaWiki Stuff

Reload the dblist from metawiki

su www-scripts -c "python3 ~/get_db_list.py"

Flush the job queue

/home/www-scripts/db_loop.sh /srv/mediawiki/w/maintenance/runJobs.php

Run update.php on all wikis

/home/www-scripts/db_loop.sh /srv/mediawiki/w/maintenance/update.php --quick

Run update.php on a single wiki

php5 /srv/mediawiki/w/maintenance/update.php --wiki extloadwiki

Rebuild Localisation Cache for extloadwiki

php5 /srv/mediawiki/w/maintenance/rebuildLocalisationCache.php --wiki extloadwiki