Updated to deploy out of temp dir.