How to update “Production” deployment using Code Push CLI?

南楼画角 提交于 2020-01-12 03:56:06

问题


I've been showing my team my progress with the Staging key. When I do code-push deployment ls APP_NAME_HERE -k, it'll give me a Staging and Production table with Production having the message No updates released.

I have been using code-push release-react APP_NAME_HERE ios to update. Can anyone guide me as to what options I need to send to Production instead of Staging?


回答1:


You can use --deploymentName to specify the deployment you want to update.

code-push release-react APP_NAME_HERE ios --deploymentName Production

You could also promote your release from staging to production (docs):

code-push promote APP_NAME_HERE Staging Production



来源:https://stackoverflow.com/questions/37616715/how-to-update-production-deployment-using-code-push-cli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!