Cloud Config File
Create cloud.yml
Run:
The command creates cloud.yml, which defines how Reflex Cloud should deploy the app.
File structure
Every field is optional:
Options reference
Configuration details
Projects
Organize deployments using projects:
You can also specify a project uuid instead of name:
Copy the project ID from the project's settings in Reflex Build.
Apt Packages
Install additional system packages your application requires. Package names are based on the apt package manager:
Include SQLite
Include local sqlite database:
This database is not persistent and is lost when the app restarts. Use a database service for production data.
Strategy
Deployment strategy: Available strategies:
immediate: [Default] Deploy immediatelyrolling: Deploy in a rolling mannerbluegreen: Deploy in a blue-green mannercanary: Deploy in a canary manner, boot as single machine verify its health and then restart the rest.
Multi-Environment Setup
Development (cloud-dev.yml):
Staging (cloud-staging.yml):
Production (cloud-prod.yml):
Deploy with specific configuration files: