return promise when deploy finished