When setting up a site with local there is no prompt for the sudo password when the hosts file needs to be changed.
This seems to be the reason why it fails with an error.
The issue is with my setup, I switched to another window manager, called awesome and for some reason that prevents Local from finding a suitable policy kit agent, if I try the same thing with my default OpenBox window manager I get prompted and it works