Very good question.

We recommend that you set up multiple brainCloud apps for this purpose. A common naming convention for our devs is to use the suffixes "Dev" and "Prod" for this purpose.

So - if you're building "AwesomeApp" - you might create two brainCloud apps - "AwesomeApp Dev" and "AwesomeApp Prod".  (Remember, apps in development are free - so this won't end up costing you anything.)

Do your day-to-day development in "AwesomeApp Dev" - and when you're ready to push an update to production, your our Push Button Deployment feature:

  • Log into the brainCloud Portal
  • Select your "AwesomeApp Dev" app, and go to the Design | Core App Info | Admin Tools page
  • In the Deployment section, select "AwesomeApp Prod" in the Deploy To combo
  • Ensure the deployment options are configured correctly (see below)
  • Click [Deploy] and you will migrate the changes you have made in AwesomeApp Dev -> AwesomeApp Prod
  • Voila!

Note that performing a deployment like this transfers over the app's metadata and global files - but does *not* transfer over dynamic app data (i.e. user accounts, user files, global entities, etc.).

Understanding the deployment options

  • [x] Do not overwrite product/pricing information - Keep this checked if you have set up separate In-app purchase items for production vs. development. Uncheck otherwise.
  • [x] Do not overwrite push notification certifications - Similarly, check this if you have separate push certificates for production vs. development. Uncheck otherwise.
  • [x] Do not overwrite integrations - Keep this checked if you have separate integration settings for production vs. development.
  • [x] Do not overwrite My Servers configurations - prevents the deploy for changes the settings for your external and/or hosted servers. This is important if you have hosted servers, since your configurations (minimum # servers, server sizes, etc) for production will likely be very different than development
  • [x] Do not overwrite lobby configurations - prevents development lobby settings from overwriting the production values.

Pro-tips

  • Double-check the settings after a first deploy. The platform settings under  Design | Core App Info | Application IDs are not written during a deploy (since it is likely those settings will be different for each app version you maintain). 
  • Set up a compiler flag that makes it easy to build a production release of your app that connects to "AwesomeApp Prod" instead of "AwesomeApp Dev". This flag should switch both the brainCloud app id and secret, and other items like push notification certificates if they differ between the two.
  • You may want to consider forcing a client update to go with the server update that you just pushed. This blog post talks about enforcing minimum client versions.
  • To transfer System Entities (which are Global Entities without an owner) from one app to another, you can use the Export / Import features under Monitoring | Global Monitoring | Global Entities.

Your feedback is important to us. Please rate this response below. Thanks! 

Did this answer your question?