Table of contents

Use the side-by-side browser

The side-by-side browser is a tool to preview redirections for sites that are being transitioned to GOV.UK.

Deploying the side-by-side browser on AWS

Instructions on the Wiki under ‘Deploying the side-by-side browser on AWS’.

Update the app

$ ssh side-by-side
$ cd /data/side-by-side-browser

There’s an etc/hosts.json file in the repo, but it’s periodically updated, so for now:

$ sudo git stash
$ sudo git pull
$ sudo git stash pop

Restart the service:

$ sudo /etc/init.d/side-by-side restart

Note the command service doesn’t seem to work with the forever script.

Follow the logs, which are a bit too verbose:

$ tail -f /var/log/side-by-side

There’s a root cron job to check and fetch the hosts.json file every 15 minutes:

0,15,30,45 * * * * cd /data/side-by-side-browser/etc && curl -s -o temp-hosts.json https://transition.publishing.service.gov.uk/hosts.json && mv temp-hosts.json hosts.json >> /var/log/side-by-side-curl 2>&1
This page is owned by #taxonomy and needs to be reviewed