No edit summary
No edit summary
Line 6: Line 6:
1. Remind Matt before you start
1. Remind Matt before you start
1. Tell Plot you are starting via Facebook
1. Tell Plot you are starting via Facebook
1. On nukka
1. On favog
```bash
```bash
systemctl stop mysql
systemctl stop mysql
Line 12: Line 12:
systemctl stop apache2
systemctl stop apache2
```
```
1. On favog
1. On merple
     1. Edit `/etc/mediawiki_global.inc.php` - ensure `$wgReadOnly` is set
     1. Edit `/etc/mediawiki_global.inc.php` - ensure `$wgReadOnly` is set
     2.
     2.
Line 19: Line 19:
systemctl stop jetty
systemctl stop jetty
systemctl stop apache2
systemctl stop apache2
rsync -avz --progress --delete /srv/www/htdocs nukka:/srv/www/
rsync -avz --progress --delete /srv/www/htdocs favog:/srv/www/
rsync  -avz --progress --delete /var/lib/mysql/* nukka:/var/lib/mysql/
rsync  -avz --progress --delete /var/lib/mysql/* favog:/var/lib/mysql/
rsync  -avz --progress --delete /home/websites/mediawiki-public-images nukka:/home/websites/
rsync  -avz --progress --delete /home/websites/mediawiki-public-images nukka:/home/websites/
scp /usr/share/jetty/webapps/website.war nukka:/usr/share/jetty/webapps/
scp /usr/share/jetty/website-jar-with-dependencies.jar favog:/usr/share/jetty/website-jar-with-dependencies.jar
```
```
1. On nukka
1. On favog
     1.
     1.
```bash
```bash
Line 34: Line 34:
```
```
     1. Edit `/etc/mediawiki_global.inc.php` - ensure `$wgReadOnly` is not set
     1. Edit `/etc/mediawiki_global.inc.php` - ensure `$wgReadOnly` is not set
1. Get Matt to swap http/https over to `nukka` on the router - leave ssh until you have confirmed everything is working
1. Get Matt to swap http/https over to `favog` on the router - leave ssh until you have confirmed everything is working
1. Check it all
1. Check it all
     1. Check the website is up.
     1. Check the website is up.
Line 41: Line 41:
     1. Check ls2 is running and that you can search for a recent page
     1. Check ls2 is running and that you can search for a recent page
1. Get Matt to swap ssh over
1. Get Matt to swap ssh over
1. Remind Matt to change beaker's DNS to point the CNAME `live` at `nukka` instead of `favog` (www, crew, etc all CNAME to `live`)
1. Remind Matt to change beaker's DNS to point the CNAME `live` at `favog` instead of `merple` (www, crew, etc all CNAME to `live`)
1. Check ssh now connects to `nukka`
1. Check ssh now connects to `favog`
1. Tell Plot the maintenance is complete via Facebook
1. Tell Plot the maintenance is complete via Facebook

Revision as of 19:40, 31 August 2018

Template:MARKDOWN

    1. From favog

1. Check `nukka` is up well in advance. If it isn't, get Matt to start it 1. Make sure Matt is available when you're planning to make the switch 1. Ensure the Plot team are warned via their Facebook group (Clive, Matt, Nick Taylor or Raff can do this) 1. Remind Matt before you start 1. Tell Plot you are starting via Facebook 1. On favog ```bash systemctl stop mysql systemctl stop jetty systemctl stop apache2 ``` 1. On merple

   1. Edit `/etc/mediawiki_global.inc.php` - ensure `$wgReadOnly` is set
   2.

```bash systemctl stop mysql systemctl stop jetty systemctl stop apache2 rsync -avz --progress --delete /srv/www/htdocs favog:/srv/www/ rsync -avz --progress --delete /var/lib/mysql/* favog:/var/lib/mysql/ rsync -avz --progress --delete /home/websites/mediawiki-public-images nukka:/home/websites/ scp /usr/share/jetty/website-jar-with-dependencies.jar favog:/usr/share/jetty/website-jar-with-dependencies.jar ``` 1. On favog

   1.

```bash sudo su - systemctl start mysql systemctl start jetty systemctl start apache2 /etc/cron.daily/ls2-build ```

   1. Edit `/etc/mediawiki_global.inc.php` - ensure `$wgReadOnly` is not set

1. Get Matt to swap http/https over to `favog` on the router - leave ssh until you have confirmed everything is working 1. Check it all

   1. Check the website is up.
   1. Check the wikis are up
   1. Check the wikis are editable
   1. Check ls2 is running and that you can search for a recent page

1. Get Matt to swap ssh over 1. Remind Matt to change beaker's DNS to point the CNAME `live` at `favog` instead of `merple` (www, crew, etc all CNAME to `live`) 1. Check ssh now connects to `favog` 1. Tell Plot the maintenance is complete via Facebook