The rest deployment script