Change deploy to use hostname and not the URL (http://...) for site host

Fix an issue with email links