问题
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