Deploying Reflex Project
This article will teach you how to deploy your Reflex application to cloud service providers like Google Cloud Platform, Amazon Web Service, Digital Ocean, Vultr, and more with one click using Zeabur.
Pre-existing Reflex Project
Prerequisites
If you already have a Reflex project, ensure that your code meets the following requirements:
- Your project root directory contains a
requirements.txt
file. - Your
requirements.txt
file includes thereflex
package.
If your project meets the above criteria, you can start deploying it immediately. The Zeabur deployment process will automatically recognize and build your Reflex application.
Deployment
There are three ways you can use Zeabur to deploy your Reflex project to cloud service providers:
- Deploy from a GitHub repository.
- Deploy using the Zeabur CLI.
- Upload your code through the Zeabur web console.
Initializing a Reflex Project
If you don't yet have a Reflex project, you can follow the official Reflex documentation (opens in a new tab) to initialize a new Reflex project.
- Create a virtual environment:
python3 -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- Install Reflex:
pip install reflex
- Create a Reflex project:
reflex init