Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update "Production" deployment using Code Push CLI?

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?

like image 714
Naoto Ida Avatar asked Jun 03 '16 14:06

Naoto Ida


People also ask

How do you get a deployment key in CodePush?

As a reminder, you can retrieve these keys by running appcenter codepush deployment list -a <ownerName>/<appName> --displayKeys from your terminal.

Does CodePush work on iOS?

We created standard deployments, set up react-native-code-push for iOS and Android applications, and finally, deployed our updates. You can read more in the CodePush documentation and Microsoft AppCenter docs.


1 Answers

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

like image 52
Daniel Basedow Avatar answered Nov 23 '22 18:11

Daniel Basedow