update api deploy script.