Stallion for Production

This section covers how to promote a bundle to production.

Stallion for Production

Stallion enables you to promote thoroughly tested bundles directly to production, ensuring that your users receive the latest updates. With a single click, you can distribute your feature to millions of users.

And don’t worry—we also offer a phased rollout feature to help you deploy smoothly without any hiccups.

Prerequisite:

Before continuing, please verify that both the SDK and CLI are installed. If they aren’t, consult our Installation Guide.

Step 1: Publish bundle to Stallion

  • Make some code changes in your React Native app. Make sure these are changes that can be validated easily.
  • Build and push updated bundle to Stallion. Check Publishing Bundle To Stallion.

Step 2: Promote build to production

A Stallion build (uploaded bundle) can be promoted to production directly from the Stallion Dashboard. Simply select the build you want to send to your users from a bucket and click on Promote Bundle. Fill in the target app version for which you want to send the release, add the release notes and save. Only users with admin privileges within the organization are allowed to promote a bundle to production.

Tip:

You can choose to promote the release to a Higher App Version and publish release app builds with Stallion integrated on these high app versions to test Stallion in production environment without impacting your real users.

Stallion Promote Bundle

Tip:

By default, the rollout percentage for a release is set to 0%, meaning only users logged into the SDK will receive the update initially. This feature can also be leveraged for Beta testing releases internally in production environments. Read more about SDK features here.

Your promoted bundles are available under Releases section in the dashboard Stallion prod releases

Step 3: Test the promoted changes in your app

Prerequisite:

After installing Stallion, create app build (APK or TestFlight) with Stallion integrated to test OTA updates. Note: OTA changes won’t apply in dev mode via Metro bundler — use a published app build to verify.

  • Open your React Native app built on the target app version.
  • Stallion will check for a new update by default everytime app enters background to foreground state. Wait for the build to download then.
  • To make sure that the build was downloaded properly you can verify the adoption numbers in the Stallion Console against your release.
  • You can also integrate a custom UI to handle new release downloads. Know how here - https://learn.stalliontech.io/blogs/react-native-over-the-air-updates-with-custom-ui.
  • Finally restart the app, you should be able to validate the changes getting applied.

Manually pause or rollback a release

A promoted release can be paused or rolled back from the Dashboard by editing the Releases section. Stallion release rollback

Pause

When a release is paused, it will no longer get downloaded for any new users in production. You can also unpause a release later.

Rollback

When a release is rolled back manually i.e. from dashboard, it will be removed from the memory and app will fall back to the previous stable release. Remember that a rolled back release is also paused by default. Does not get downloaded for any new users.

Manual rollback is useful in case you accidentally send a faulty release to production.