Stallion logo

Self-Hosted CodePush Alternative — On-Premise OTA Updates for React Native

For enterprise teams requiring complete control over their OTA update infrastructure, React Native Stallion offers a self-hosted deployment option. Deploy React Native Stallion on your own infrastructure—AWS, GCP, Azure, or your private cloud—with full data control, compliance, and security.

Unlike CodePush, which requires Microsoft's infrastructure, or Expo Updates, which has no self-hosting option, React Native Stallion provides a complete self-hosted CodePush alternative that you can deploy and manage entirely within your own environment.

Why Choose Self-Hosted OTA Updates?

Compliance & Data Residency

Meet SOC 2, GDPR, HIPAA, and other regulatory requirements that mandate data residency. Keep all OTA update data within your own infrastructure and geographic boundaries.

Complete Data Control

Full control over where your app bundles, update metadata, and analytics data are stored. No third-party cloud dependencies for sensitive workloads.

Enterprise Security

Deploy behind your firewall with end-to-end encryption, bundle signing, and audit trails. Meet enterprise security policies that require on-premise deployment.

Cost Control

Predictable costs with no per-update fees. Deploy on your existing infrastructure and scale according to your needs without vendor lock-in.

Deployment Options

React Native Stallion can be deployed on any infrastructure:

AWS (Amazon Web Services)

Deploy React Native Stallion on AWS EC2, ECS, or EKS. Use S3 for bundle storage, CloudFront for CDN, and RDS for metadata. Full integration with AWS IAM, CloudWatch, and other AWS services.

GCP (Google Cloud Platform)

Deploy on Google Cloud Run, GKE, or Compute Engine. Use Cloud Storage for bundles, Cloud CDN for delivery, and Cloud SQL for metadata. Integrate with GCP IAM and monitoring services.

Azure

Deploy on Azure App Service, AKS, or Virtual Machines. Use Azure Blob Storage for bundles, Azure CDN for delivery, and Azure SQL for metadata. Full Azure integration available.

Docker & Kubernetes

Deploy using Docker containers on any Kubernetes cluster. React Native Stallion ships as containerized services that can be orchestrated with Kubernetes for high availability and scalability.

Private Cloud & On-Premise

Deploy on your own private cloud infrastructure or physical servers. React Native Stallion works in air-gapped environments and can be deployed entirely behind your firewall.

Installing Standalone CodePush Server

This guide shows you how to deploy and configure your own React Native Stallion server in a self-hosted environment.

Prerequisites

  • Docker and Docker Compose installed
  • Node.js 18+ for CLI tools
  • Access to your cloud provider (AWS, GCP, Azure) or on-premise infrastructure
  • Domain name for your self-hosted instance (optional but recommended)

Step 1: Deploy React Native Stallion Server

React Native Stallion can be deployed using Docker Compose:

# Clone the repository
git clone https://github.com/stalliontech/stallion-server
cd stallion-server

# Configure environment variables
cp .env.example .env
# Edit .env with your configuration

# Start the services
docker-compose up -d

Step 2: Configure CodePush Command Line Interface

Configure the React Native Stallion CLI to use your self-hosted server:

# Set your self-hosted server URL
npx stallion config set server-url https://your-stallion-server.com

# Authenticate with your server
npx stallion login

Step 3: Publish Your First Bundle

Once configured, publish bundles to your self-hosted server:

npx stallion publish-bundle \
  --upload-path=org-name/project-name/bucket \
  --platform=android \
  --release-note="First self-hosted release"

Self-Hosted Features

Enterprise-Grade Security

Deploy React Native app updates behind your firewall with end-to-end encryption, bundle signing, and audit trails. Meet SOC 2 and GDPR requirements with on-premise hosting for mobile app updates.

Full Feature Parity

Self-hosted React Native Stallion includes all features: patch updates, rollback, analytics, internal testing channels, and granular rollout control. No feature limitations compared to cloud-hosted version.

Complete Control

Full control over infrastructure, scaling, backups, and maintenance. Customize deployment to match your organization's requirements and policies.

Air-Gapped Deployment

Deploy in air-gapped environments with no external dependencies. React Native Stallion can operate entirely within your private network.

Self-Hosted CodePush vs React Native Stallion

CodePush originally required Microsoft's App Center infrastructure. While some teams have created CodePush forks for self-hosting, these require significant maintenance and lack modern features.

React Native Stallion provides a complete, production-ready self-hosted solution with:

  • Patch updates (90-98% smaller than full bundles)
  • Active development and regular updates
  • Comprehensive documentation and support
  • Modern architecture and security features
  • Easy deployment with Docker and Kubernetes
  • Full feature parity with cloud version

When to Choose Self-Hosted

Regulatory Compliance

Organizations in healthcare, finance, or government sectors that must meet HIPAA, SOC 2, GDPR, or other regulatory requirements requiring data residency and on-premise deployment.

Data Sovereignty

Companies operating in regions with data sovereignty laws that require all data to remain within specific geographic boundaries or national borders.

Enterprise Security Policies

Large enterprises with strict security policies that mandate on-premise deployment for all critical infrastructure, including OTA update systems.

Air-Gapped Environments

Organizations with air-gapped networks that cannot connect to external cloud services but still need OTA update capabilities for their React Native apps.

Related Resources

Frequently Asked Questions

Can I deploy React Native Stallion on AWS?

Yes, React Native Stallion can be deployed on AWS EC2, ECS, or EKS. You can use S3 for bundle storage, CloudFront for CDN, and RDS for metadata. Full integration with AWS services is supported.

Does self-hosted React Native Stallion support patch updates?

Yes, self-hosted React Native Stallion includes full support for patch updates, providing 90-98% smaller updates than full bundles. All features available in the cloud version are available in self-hosted deployments.

How do I migrate from CodePush to self-hosted React Native Stallion?

Migration is straightforward. Deploy React Native Stallion server, configure the CLI to point to your server, and publish bundles using the same patterns you used with CodePush. The API is compatible, making migration smooth. See our migration guide.

Can I deploy React Native Stallion in an air-gapped environment?

Yes, React Native Stallion can be deployed in air-gapped environments with no external dependencies. All components can operate entirely within your private network.

What infrastructure do I need for self-hosted deployment?

You need Docker and Docker Compose (or Kubernetes), storage for bundles (S3, Azure Blob, GCP Storage, or local storage), a database for metadata (PostgreSQL, MySQL, or compatible), and optionally a CDN for bundle delivery. React Native Stallion can scale from small deployments to large enterprise installations.