Refactor deploy function arguments
Fire `npm restart` after deployment is in place