Tech:Handbook: Difference between revisions

From Orain Meta
Jump to navigation Jump to search
Content added Content deleted
imported>Addshore
(fix)
imported>Addshore
(fix)
Line 6: Line 6:


'''Manual Pull'''
'''Manual Pull'''
<blockquote>ansible-playbook -c local --limit "<<HOSTNAMEHERE>>" /root/ansible-playbook/local.yml -i "/root/ansible-playbook/production"</blockquote>
<blockquote>ansible all -i "localhost," -c local --limit "localhost:localhost.localdomain:127.0.0.1" -m git -a "name=https://github.com/Orain/ansible-playbook.git dest=/root/ansible-playbook version=master"
</blockquote>


'''Manual Update''' (doesnt pull changes from the repo)
'''Manual Update''' (doesn't pull changes from the repo)
<blockquote>ansible-playbook -c local --limit "localhost:prod2.orain.org:127.0.0.1" /root/ansible-playbook/local.yml -i "/root/ansible-playbook/production"</blockquote>
<blockquote>ansible-playbook -c local --limit "<<HOSTNAMEHERE>>" /root/ansible-playbook/local.yml -i "/root/ansible-playbook/production"</blockquote>


==Mediawiki Stuff==
==Mediawiki Stuff==

Revision as of 22:17, 19 February 2014

Most of the stuff below should be done automatically. If you do it manually please say so at 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 --limit "localhost:localhost.localdomain:127.0.0.1" -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

Flush the job queue

/home/www-scripts/db_loop.sh /usr/share/nginx/.orain.org/w/maintenance/runJobs.php

Run update.php on all wikis

/home/www-scripts/db_loop.sh /usr/share/nginx/.orain.org/w/maintenance/update.php --quick

Run update.php on a single wiki

/usr/bin/php /usr/share/nginx/.orain.org/w/maintenance/update.php --wiki extloadwiki

Rebuild Localisation Cache for extloadwiki

/usr/bin/php /usr/share/nginx/.orain.org/w/maintenance/rebuildLocalisationCache.php --wiki extloadwiki