I have been unable to resolve this, so have set up a new Ubuntu server.
Many thanks to everyone who to tried to help.
I now have one final problem to resolve with the Ubuntu server, I have posted the question here: Unable to access Phoenix app after deployment to Ubuntu 18.04
I appears to be Ubuntu/Nginx related if anyone can help.